ushahidi / SwiftRiver-API

An API for external (third party) applications to post and consume data to/from SwiftRiver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The API does not return a value for a tweet's original URL

dan-king opened this issue · comments

The API returns blank values for tweets original URL

The attached example shows a tweet from user @Chapter5band. The orginal_url of the tweet is
https://twitter.com/Chapter5band/status/351777499279142916 but shows up blank in the response from the API

swiftriver api - drop details - blank original_url

Note: The search request can be used to construct the original URL using the $source['username'] and $original_id values.

https://wiki.ushahidi.com/display/WIKI/SwiftRiver+API+Search+Resources#SwiftRiverAPISearchResources-GETsearch/drops

i.e.
$original_tweet_url = "https://twitter.com/" . $source['username']. "/status/" . $original_id;

@dan-king I fixed this in the app the Twitter streaming app.

Closing

Thanks Emmanuel. Do I have to install an update to get the fix? (Sorry, I'm
still a noobJ)

-----Original Message-----
From: Emmanuel Kala [mailto:notifications@github.com]
Sent: Wednesday, September 11, 2013 3:22 AM
To: ushahidi/SwiftRiver-API
Cc: dan-king
Subject: Re: [SwiftRiver-API] The API does not return a value for a tweet's
original URL (#49)

@dan-king https://github.com/dan-king I fixed this in the app the Twitter
streaming app.

Closing

Reply to this email directly or view
#49 (comment)
it on GitHub.
<https://github.com/notifications/beacon/gzdJA3Z6fKDeGhVWc1Uk_8Y7KbzfWQeZpAo
UNW1nvphOTARnK-Btd5ElQ49AoCpB.gif>