Twitter API
Twitter API Integration
YellowAPI.com and Twitter have announced a new data partnership, see our announcement here, and Twitter's developer community post. We have completed the integration of YellowAPI's listing_id (PBL_listing) and Twitter's place_id, which allows YellowAPI developers to send our listing_id to the Twitter API and tag Canadian businesses in your tweets. We are the first and only directory publisher to have completed this integration worldwide. See below for example and details.
How It Works
When you send a post to Twitter you can include a place_id. To get this place_id you take the listing_id (or PBL_listing) returned by YellowAPI. Send this listing_id as the place_id (see below for proper formatting), and your tweet will show as being from that location.
The Twitter API docs for posting tweets can be found here: http://dev.twitter.com/doc/post/statuses/update
To use a YellowAPI listing_id as a place, set place_id to:
410239:id:<listing_id>
Samples:
The following would tweet a message of "Test" from the location "Champion Pizza" (assuming you have authenticated with Twitter as a first step).
http://api.twitter.com/1/statuses/update.xml?status=Test&place_id=410239%3Aid%3A6699234
Parameters:
status: Test
place_id: 410239:id:6699234