INCOMPATIBILITY ALERT: response body of /account/verify_credentials changing Dec 10th

6 views
Skip to first unread message

Alex Payne

unread,
Dec 2, 2008, 9:14:43 PM12/2/08
to Twitter Development Talk
As per http://code.google.com/p/twitter-api/issues/detail?id=173 we'll
be changing the /account/verify_credentials method to return the
representation of the authenticated user. Because some applications
depend on the contents of this response, we're delaying this change
until December 10th, 2008.

Please update your applications to verify by response code, not by the
response body for this method. If you get a 200 back, you're
verified. If you get a 401 back, you're not.

If you can't ship an update in 8 days, please let us know and we'll
push the date out further.

--
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x

Ed Finkler

unread,
Dec 2, 2008, 10:00:06 PM12/2/08
to twitter-deve...@googlegroups.com
Can we confirm that we will only ever get a 200 on success? No other
code will ever indicate success?

--
Ed Finkler
http://funkatron.com
AIM: funka7ron
ICQ: 3922133
Skype: funka7ron

Alex Payne

unread,
Dec 2, 2008, 10:13:22 PM12/2/08
to twitter-deve...@googlegroups.com
Yes indeed.

dean.j.robinson

unread,
Dec 4, 2008, 12:07:05 AM12/4/08
to Twitter Development Talk
"return the representation of the authenticated user"

does that mean that the response will be the same as if we called
http://twitter.com/users/show/id.format for the authenticated user?
If so that would be awesome and means I could completely eliminate
some of the extra api calls that I'm making. Doesn't matter too much
either way though, since both Hahlo 3.1 and Hahlo 4 (which I've
recently begun work on) both currently use the http status for
confirmation.

thanks for the heads up.

On Dec 3, 1:14 pm, "Alex Payne" <a...@twitter.com> wrote:
> As perhttp://code.google.com/p/twitter-api/issues/detail?id=173we'll

Alex Payne

unread,
Dec 4, 2008, 3:15:29 PM12/4/08
to twitter-deve...@googlegroups.com
Yes, that's exactly what it means. Glad it helps!

Brooks Bennett

unread,
Dec 4, 2008, 3:42:20 PM12/4/08
to Twitter Development Talk
I agree, this is a great change.

On Dec 3, 11:07 pm, "dean.j.robinson" <Dean.J.Robin...@gmail.com>
wrote:
> "return the representation of the authenticated user"
>
> does that mean that the response will be the same as if we calledhttp://twitter.com/users/show/id.format  for the authenticated user?

Alex Payne

unread,
Dec 10, 2008, 9:07:39 PM12/10/08
to twitter-deve...@googlegroups.com
Just a reminder: today was the day for this change to go live, and it
just went live.

dean.j.robinson

unread,
Dec 10, 2008, 9:26:52 PM12/10/08
to Twitter Development Talk
Thanks Alex, looks great.

I'm playing with it now and am looking to use it to replace the
additional show/user.json call that I previously needed. There are a
few properties that are in user/show but not in the verify_credentials
method, I was wondering if there are plans to include these in a
future update, or if I'll need to continue using two separate calls as
I am now.

Those that are missing/not returned are:
- friends_count
- utc_offset
- profile_text_color
- statuses_count
- profile_link_color
- notifications
- following
- time_zone
- created_at
- profile_sidebar_fill_color
- favourites_count
- profile_sidebar_border_color
- profile_background_color

thanks

Swap

unread,
Dec 10, 2008, 9:24:51 PM12/10/08
to Twitter Development Talk
It does return an error (along with the header) as well. Thanks for
adding the user data to this call. Saves an extra call for our
service.

--
Swap

Alex Payne

unread,
Dec 10, 2008, 10:34:27 PM12/10/08
to twitter-deve...@googlegroups.com
I can have it return the "extended" version of the User object, sure.

dean.j.robinson

unread,
Dec 10, 2008, 11:32:57 PM12/10/08
to Twitter Development Talk
that would be brilliant, it would allow me to completely eliminate the
additional api call I'm using, while making sure I can still keep
users profile settings up to date on each login.

no rush though, thanks in advance :)
> >> >> does that mean that the response will be the same as if we calledhttp://twitter.com/users/show/id.formatfor the authenticated user?
Reply all
Reply to author
Forward
0 new messages