Following via the API

0 views
Skip to first unread message

ba...@bjhess.com

unread,
Mar 3, 2008, 3:24:43 PM3/3/08
to Twitter Development Talk
I've run through a series of authenticated calls with RESTTest via
Firefox with no problems:

o direct messages
o verify_credentials
o followers

For example:

https://twitter.com/direct_messages.xml

Headers:

Accept: application/xml
Content-Type: application/xml
Authorization: Basic (encoded_credentials)

Unfortunately, the method I actually want to get at is not working:

http://twitter.com/notifications/follow/bjhess.xml

Response:

<?xml version="1.0" encoding="UTF-8"?>
<hash>
<request>/notifications/follow/bjhess.xml</request>
<error>There was a problem following the specified user.</error>
</hash>

I see that this addition to the API is relatively green. Any help
would be greatly appreciated, as this is one of only two API calls I
need at this time.

Marco Kaiser

unread,
Mar 3, 2008, 3:36:46 PM3/3/08
to twitter-deve...@googlegroups.com
As your topic is "Following via the API", maybe you get something wrong here...

The message you are referring to does not enable following someone, it enables notifications for someone you already follow. Is this what you want to do?

To follow a user, you have to use

http://twitter.com/friendships/create/id.format

bjhess

unread,
Mar 3, 2008, 3:54:52 PM3/3/08
to Twitter Development Talk
Thank you. Indeed I was confused with the difference. Being new to
Twitter, I just knew I clicked "follow" to follow someone. :)

Thanks, Marco.


On Mar 3, 2:36 pm, "Marco Kaiser" <kaiser.ma...@gmail.com> wrote:
> As your topic is "Following via the API", maybe you get something wrong
> here...
>
> The message you are referring to does not enable following someone, it
> enables notifications for someone you already follow. Is this what you want
> to do?
>
> To follow a user, you have to use
>
> http://twitter.com/friendships/create/*id*.*format
>
> *
Reply all
Reply to author
Forward
0 new messages