A couple of API fixes and changes

60 views
Skip to first unread message

Matt Harris

unread,
Dec 1, 2010, 6:56:26 PM12/1/10
to Twitter Development Talk
Hey everyone,

I wanted to let you know about a couple of changes we're rolling out for the API.

1. There will be a new attribute of parentid in the responses from /1/trends/available.format . This attribute corresponds to the woeid of the place within which this location is found. In the example San Francisco's parentid is 23424977, which corresponds to the USA. If the location does not have a parent (e.g. the world), the parentid will not be included.

XML sample
<location>
  <woeid>2487956</woeid>
  <name>San Francisco</name>
  <placeTypeName code="7">Town</placeTypeName>
  <country type="Country" code="US">United States</country>
  <parentid>23424977</parentid>
</location>

JSON sample
[
  {
    "name": "San Francisco",
    "woeid": 2487956,
    "placeType": {
      "name": "Town",
      "code": 7
    },
    "country": "United States",
    "countryCode": "US",
    "parentid": 23424977
  }
]


2. Later this week we will add the error message "Timestamp out of bounds" to help diagnose issues with your OAuth requests. This error message will be returned if the oauth_timestamp you send is not within the allowed time skew of our servers. As a reminder our server time is always included in the HEAD of our API responses and is in GMT.

3. You may also notice some other API bugs being resolved over the next few days/weeks. If you've had some workarounds in place, or are just interested, you may want to keep an eye on the recently closed issues list:


Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris
Reply all
Reply to author
Forward
0 new messages