Yes, you are right,
abraham mention that the following will fix the problem
$response = $connection->post('favorites/create/' . $status_id);
-chiu
On Jun 16, 2:51 pm, Matt Harris wrote:
> The URL to create a favorite using the API is a POST to:
>
> /1/favorites/create/id.format
>
> So in your
The URL to create a favorite using the API is a POST to:
/1/favorites/create/id.format
So in your case it would be:
/1/favorites/create/16170711730.json
Give that a try and let us know how it goes. I know the docs on
dev.twitter.com are incorrect for this so i'll be updating them soon.
On Wed,
Let us continue this on the issue tracker so we don't spam the list as
much: http://github.com/abraham/twitteroauth/issues#issue/33
Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x]
Request =
/1/favorites/create.json?
id=16170711730&oauth_consumer_key=vfM8qYNAEBfZsofKDNX65Q&oauth_nonce=6c2b0e1a7af3dd0b60680c8860e63454&oauth_signature=zZyk1NxKlpXZEapSszao6PCIAQM
%3D&oauth_signature_method=HMAC-
SHA1&oauth_timestamp=1276724507&oauth_token=13073932-
seUruGITdpHxCJsoUhpjectP4hpdRu
The signature base string is the following
zZyk1NxKlpXZEapSszao6PCIAQM=
$signature = $this->build_signature($signature_method, $consumer,
$token);
thanks
-chiu
On Jun 16, 12:57 pm, Taylor Singletary
wrote:
> Hi Chiu,
>
> You're going to want to reset your keys on your application settings on
>
If I do a HTTP POST - i got error message saying that
"This method requires a GET."
On Jun 16, 1:00 pm, Abraham Williams <4bra...@gmail.com> wrote:
> favorites/create should be a POST. Try:
>
> $response = $connection->post( 'favorites/create', array ('id' => $status_id
> ) );
>
> Abraham
> -
favorites/create should be a POST. Try:
$response = $connection->post( 'favorites/create', array ('id' => $status_id
) );
Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask firs
Hi Chiu,
You're going to want to reset your keys on your application settings on
dev.twitter.com -- we will really recommend not posting your consumer
secrets to the group -- but easy to rectify if you go and change your keys.
Your signature base string is actually a bit different than your keys.
Hi Taylor,
Thanks for the prompt reply
consumer key = vfM8qYNAEBfZsofKDNX65Q
consumer secret = fwBTEa4GRCPkszO26ma5mFLi1aInV82JTxJWbuL26g
token key = 13073932-seUruGITdpHxCJsoUhpjectP4hpdRubW62Q7nftyA
token secret = Y0cXVWuoymSiVRRhFMpCoHqQuJ2BxNSjRqotpRZx0
thanks
-chiu
On Jun 16, 12:35 pm, T