[twitter-dev] Finding old tweets

2011-06-08 Thread Tim Skipper
Is it possible, by way of the API or otherwise, to find a tweet that I
sent, and it's reply from the recipient, from May 2010?  I know the
time of the reply (to the nearest minute) if that helps.

I know that is a *very* long time ago in the world of Twitter!

Regards,
Tim Skipper
http://www.intonet-technology.co.uk

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] oaut token secret lengths

2011-02-17 Thread Tim Skipper
Is it still the case that the maximum size for an oauth token or
secret is 50 characters?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Xml output of friendships/show api call

2011-02-15 Thread Tim Skipper
Could I ask the Twitter devs to cast some light on the Xml output from
friendsships show? Some of it is a little confusing or misleading I
thinnk.  Here's a real-world sample response I just received:

relationship
target
following type=booleantrue/following
id_str58770203/id_str
screen_nameharrismonkey/screen_name
id type=integer58770203/id
followed_by type=booleantrue/followed_by
/target
source
following type=booleantrue/following
blocking nil=true/
notifications_enabled nil=true/
can_dm type=booleantrue/can_dm
id_str19742345/id_str
screen_nametimskipper/screen_name
want_retweets nil=true/
marked_spam nil=true/
id type=integer19742345/id
all_replies nil=true/
followed_by type=booleantrue/followed_by
/source
/relationship

My confusion arises with the nodes which have a nil attribute. What
is this trying to say? For example, /relationship/source/blocking has
not valye, but a nil=true attribute. Is this source blocking the
target or not?

Some clarity would be much appreciated!

Regards,
Tim Skipper

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Count of Retweet Messages

2011-02-14 Thread Tim Skipper
On Feb 14, 8:18 am, Myung Jin Lee xmlsy...@gmail.com wrote:
 Hi.

 I am making tweet analyzer.
 So, I have a question, and I need your help.

 Can I know total count of someone's message retweeted by others?

 I wonder if you can help me.
 Thanks.

You need this API call:  http://dev.twitter.com/doc/get/statuses/retweets_of_me

Regards,
Tim Skipper

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Looks like our application is DOA...

2011-02-13 Thread Tim Skipper
On Feb 12, 2:19 pm, Gummy Bear ser...@seductive.com wrote:
 There's simple workaround for that. Just think about it and you'll
 figure it out ;-)

Yes, use email instead.

I can't help thinking that all these devs up in arms because Twitter
have limited use of their (free) service are making twitter apps just
because it's the latest bandwagon to jump on, rather than because it's
the most suited platform for the task in hand. I personally think
Twitter should bin DMs altogether, it seems at odds with what Twitter
is all about.

Regards
Tim

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: how to communicate with followers

2011-02-13 Thread Tim Skipper
On Feb 12, 1:15 am, Carlos Eduardo carlos@gmail.com wrote:
 I need a help, I'm developing an app for a client where it needs to
 communicate with his followers individually, each follower will
 receive a different
 link, the solution would be to have DM, but with a limit of 250 per day this
 becomes impossible, try sending mentions twitter but suspends the User, for
 thinking and spam, is there any way?

 thanks

 Eduardo

Presumably these followers have opted-in to receive these DMs? In
which case why not ask them to opt-in with their email address and
send them an email instead? If they've not, then shame on you for
adding to the spam pool.

Regards
Tim

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] oAuth Authorization Header

2011-02-08 Thread Tim Skipper
Is the order of the parameters important in the Authorization header?
Must it match that of the base string used for signing?

Regards,
Tim Skipper
http://www.intonet-technology.co.uk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] OAuth Echo, keep getting a 401

2010-10-21 Thread Skipper
Hello,
I am building a service similar to TwitPic but for long messages. I am
using Echo OAuth and I wrote a unit testing script to show you what is
going on
http://api.tweedom.com/unittest/unittest.php

On the back end I am opening the header, unfolding the content in X-
Verify-Credentials-Authorization to rebuilt the OAuth headers and I do
a GET http://api.twitter.com/1/account/verify_credentials.xml
The unit test will show you the content of X-Verify-Credentials-
Authorization and the header that is sent to Twitter.

What am I missing, please?

BTW: I plan to publish extensive code samples about Echo OAuth so that
other developers like me can learn how to do it right and stop bugging
you ;-)

The code of the unit test is
***
define ('oauth_http_provider', 'http://api.twitter.com/1/account/
verify_credentials.xml');
$consumer = new OAuthConsumer(CONSUMER_KEY,CONSUMER_SECRET,NULL);
$access_token = new OAuthToken($access_token['oauth_token'],
$access_token['oauth_token_secret']);
$request = OAuthRequest::from_consumer_and_token($consumer,
$access_token, 'GET', oauth_http_provider,NULL);
$request-sign_request(new OAuthSignatureMethod_HMAC_SHA1(),
$consumer, $access_token);
// clean up the header, Tweedom is like Twitpic, it prefers a clean
list without the 'Authorization: OAuth' label, please
$header = $request-to_header();
# Snip out the Authorization:  part, and add a realm to be polite
$real_header = explode(Authorization: OAuth, $header);
$header = 'OAuth realm=http://api.twitter.com/;,' . $real_header[1];
# Keep the spaces between elements, even though we shouldn't have to
$header = str_replace(,, , , $header);

echo 'the http header for X-Verify-Credentials-Authorization: '.
$header.'ppcalling http://api.tweedom.com/1/jumbotweex/new.xmpPResponse:
';
$response = send_echo_request(POST, 'http://api.tweedom.com/1/
jumbotweex/new.xml', $header, $post, oauth_http_provider);

# Evaluate the response
if ($response)
print_r($response);

function send_echo_request($http_method, $url, $auth_header,
$postData, $echo_url) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);

// Set our OAuth Echo headers
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
'X-Verify-Credentials-Authorization: ' . $auth_header,
'X-Auth-Service-Provider: ' . $echo_url
));

curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);


$response = curl_exec($curl);
//echo $response;
if (!$response) {
$response = curl_error($curl);
}
curl_close($curl);
return $response;
}
***

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] (OAuth) Favorite create and destroy malfunctioning, confirmed in Twurl

2010-07-08 Thread Skipper
Favorite Create
do a POST with this url
 /1/favorites/17983195453/create.xml
and you get
 /1/favorites/17983195453/create.xml  Not found 
I checked, the ID is correct. Moreover this can be easily repro in
Twurl to the same result

Destroy
performing a POST with id as parameter returns
 /1/favorites/destroy.xml  This method requires a GET. 
Which is garbage since GET is obviously neither the right mode nor in
the documentation. Even if one was to use GET and pretend is the right
mode, it still does now work (it does not remove the relationship) and
it returns a null array.

Please fix :-)

Thanks!