Re: [twitter-dev] Streaming API access level limit

2011-02-25 Thread Chen Jack S Y
Hey dude. You gave me a hint, but not tweetstream, that is twitterstream,
which is newer and works for me.

On Fri, Feb 25, 2011 at 2:12 AM, M. Edward (Ed) Borasky 
zn...@borasky-research.net wrote:

 On Thu, 24 Feb 2011 17:34:52 +0800, Chen Jack S Y aquaj...@gmail.com
 wrote:

 Thanks, dude. My problem is still there though.

 When I try the streaming api with curl in command line, everything
 goes well and it tracks a few thousands of ids successfully.

 While using eventmachine (together with em-http-request) ruby gem,
 haven't found any solutions to track more 400 ids but keep receiving
 413 response errors. Kind of weird.


 Is this the tweetstream Ruby gem? If their repository is still on Github,
 it hasn't been updated in over a year. In particular, they haven't added
 code for User Streams or oAuth. Could they be using an incorrect endpoint or
 something like that?

 --
 http://twitter.com/znmeb http://borasky-research.net

 A mathematician is a device for turning coffee into theorems. -- Paul
 Erdős

 --
 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 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


Re: [twitter-dev] Re: Apps that Site Hack

2011-02-25 Thread Pascal Jürgens
How about a competition to develop spam-detection algorithms :)

Pascal

On Feb 24, 2011, at 10:38 PM, Dewald Pretorius wrote:

 Apart from implementing reCAPTCHA on tweet submission, follow, and
 unfollow, I can't see what Twitter can do to prevent that kind of
 abuse (can you imagine the revolt by bona fide users?). How else do
 you determine that it is an actual human and not a piece of automated
 software behind the browser on the user's desktop or laptop? The only
 other option is legally, and that depends on the country of residence
 of the owners of the software. At this point in time, it appears that
 anyone who is able to and have the inclination to write desktop
 software that bypasses the API might have carte blanche to do so.

-- 
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


Re: [twitter-dev] twaud.io api: anyone manage to get it working?

2011-02-25 Thread Seth Delackner
I have done some more digging around (WireShark is amazing!) and I
have gotten past a big initial hurdle: I was building the signature
base string wrong (building it, then setting more parameters, which
should have been part of the base string in the first place).
As a sanity check, at this point my code can, using xAuth, post
twitter status updates.
But I'm incredibly confused as to what I need to send to twaud.io's
server.  It says x_verify_credentials_authorization should contain the
Authorization header.

That authorization header is built with a base string of

POSThttp[All those oauth_* params and the encoded twaud.io params]

but if the base string is supposed to include all the post form
parameters, x_auth_service_provider and
x_verify_credentials_authorization are form parameters, but I can't
include authorization, since that is defined as something that
contains the output of this whole thing.

So what SHOULD be in the base string's params?  I tried just putting
in everything except the x_verify_credentials_authorization and
x_auth_service_provider and get the very opaque 403 Forbidden / Not
Authorized.

I mean, the account is Authorized by twaud.io and twitter, and we have
an xAuth token from twitter, so that doesn't seem very informative.

Here's a sample base string:

POSThttp%3A%2F%2Ftwaud.io%2Fapi%2Fv2%2Fupload.jsonoauth_consumer_key%3DofEzSNkKNMzu4ANhII5g%26oauth_nonce%3D8BE06737-9C9C-4EB1-A3B7-CDFCDAD7DF13%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1298633580%26oauth_token%3D257264155-voUkUaayPjhrtW4a1Aid2lS2LshC5JDIM9p2LMXO%26oauth_version%3D1.0%26sound%255Bmessage%255D%3DTESTING123

containing POST, then http:// (tried https as well, but http is
helpful while debugging), the all the oauth_* params, then
sound[message].

One thing that jumps out at me is that I'm not sure what to do about
the sound[file] part, as that parameter is a multipart encoded thing,
not just another normal post parameter.  Maybe that has to be part of
the base string?

On Thu, Feb 24, 2011 at 6:43 AM, Matt Harris thematthar...@twitter.com wrote:

 Hi Seth,
 Twaud.io isn't part of the Twitter API but i'll try and help you anyway.
 The first thing to note is the Headers should be of the 
 format X-Verify-Credentials-Authorization. The 
 x_verify_credentials_authorization is mentioned because Twaud.io supports the 
 OAuth Echo parameters in the header or POST body.
 Looking at your sample X-Verify-Credentials-Authorization I notice you are 
 sending the realm as http://api.twitter.com . What i'm wondering is whether 
 you are sending the X-Auth-Service-Provider 
 as https://api.twitter.com/1/account/verify_credentials.json . According to 
 the twaud.io API documentation the X-Auth-Service-Provider must be:
     https://api.twitter.com/1/account/verify_credentials.json
 If you change the protocol to http, or use .xml instead of .json, the request 
 will not succeed. Double check that the verify_credentials request fits that 
 pattern. The other thing to ensure is the request to verify_credentials isn't 
 being sent to the Twitter API servers by your application. If the request is 
 being sent, the OAuth Echo provider cannot use it.
 Check those things out and let us know how it goes,
 Best,
 @themattharris
 Developer Advocate, Twitter
 http://twitter.com/themattharris


 On Mon, Feb 21, 2011 at 2:57 AM, Seth seth.delack...@gmail.com wrote:

 I've tried discussing with the author of twaud.io, but he says he
 doesn't really have time to look.  I've tried sending even a minimal
 test iPhone app Xcode project to twitter api support, but a week later
 no response.

 Our app is xAuth authorized, the app sends the username and password
 and gets a token, we produce all the intended headers and post up to
 twaud.io's api as described at twaud.io/api and yet just get the below
 totally opaque response:

 response: HTTP/1.1 403 Forbidden / Not Authorized

 Made sure that the twitter account I used for testing has given both
 our app and twaud.io read/write authorization.

 Here's a sample of what I am putting in X-Verify-Credentials-
 Authorization (which we've tried naming that way and also, per the
 twaud.io api page, x_verify_credentials_authorization).  We've also
 tried sending the value as either post values or as a request header:


 OAuth realm=http%3A%2F%2Fapi.twitter.com,
 oauth_consumer_key=ofEzSNkKNMzu4ANhII5g,
 oauth_token=123520286-U3RXmbgPPF0i4lDkVBdSCx9MEJhHMu8KvzAyosXI,
 oauth_signature_method=HMAC-SHA1,
 oauth_signature=9Z5VMPeL4QoGHCtpiMcUxF%2FPiXI%3D,
 oauth_timestamp=1297141216,
 oauth_nonce=A20C6AB4-AAF9-46A5-B1F0-574A5BD3B538,
 oauth_version=1.0

 I would be more than happy to send a minimal Xcode project to anyone
 who is willing to try running it in the iOS simulator.

 --
 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 

Re: [twitter-dev] twaud.io api: anyone manage to get it working?

2011-02-25 Thread Seth Delackner
Some more debug output for completeness:
Since this is multipart form data, the oauth signature base string
would be just

httpMethod +  +
  url_encode(  base_uri ) +  +
  sorted_query_params.each  { | k, v |
  url_encode ( k ) + %3D +
  url_encode ( v )
  }.join(%26)

where the params is just oauth_* stuff (not the POST params, since we
aren't url-encoded)

so something like:

POSThttp%3A%2F%2Ftwaud.io%2Fapi%2Fv2%2Fupload.jsonoauth_consumer_key%3DofEzSNkKNMzu4ANhII5g%26oauth_nonce%3D0F9ABB3E-1CC9-4124-8BDF-DEDA50AE5A6B%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1298635432%26oauth_token%3D257264155-voUkUaayPjhrtW4a1Aid2lS2LshC5JDIM9p2LMXO%26oauth_version%3D1.0

(I've tried both https and http, yes being careful to make all the
various urls use the same one)

Here for instance is the WireShark output for my multipart fields:

MIME Multipart Media Encapsulation, Type: multipart/form-data,
Boundary: 0xKhTmLbOuNdArY
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name=x_auth_service_provider

http://api.twitter.com/1/account/verify_credentials.json
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name=x_verify_credentials_authorization

OAuth realm=, oauth_consumer_key=ofEzSNkKNMzu4ANhII5g,
oauth_token=257264155-voUkUaayPjhrtW4a1Aid2lS2LshC5JDIM9p2LMXO,
oauth_signature_method=HMAC-SHA1,
oauth_signature=vKxokk1Yqi4OCE%2B5GBIjw/Q2/G0%3D,
oauth_timestamp=1298635367,
oauth_nonce=F8FF0143-97B2-4693-9EA0-4D96297F1194,
oauth_version=1.0
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name=sound[message]

Testing ECHO
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name=sound[file];
filename=StrumStage_Song.m4a
Content-Type: application/octet-stream

ftypM4A M4A mp42[elided for brevity.  lots of text]
--0xKhTmLbOuNdArY--

-- 
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] Search API vs Phoenix search (speed of indexing)

2011-02-25 Thread Dan
Hi,

I am developing a browser-based client side app that is making use of the 
search API.

I have noticed for certain terms, in the documented API it is very slow to 
index new tweets : e.g. right now the term 'Glazers' is trending in the UK, 
and the most recent tweet for that search term is six minutes old.

If I do the exact same search in new twitter (using the undocumented phoenix 
search - i.e: http://twitter.com/phoenix_search.phoenix?...;), the most 
recent term is 53 seconds old (and there are many more newer than the most 
recent one returned from the search API)

So for this search term, phoenix is well ahead of the documented API.

The weird thing is for many other search terms they are returning results at 
the same speed (e.g. George Harrison right now)

Is this a (known ? ) bug?

Have twitter deliberately given themselves a superior API?

Any advice would be much appreciated.

Aside: I know I could use the streaming API, but I am trying to write this 
client side, and the streaming API does not yet support web sockets, so I 
don't think this is an option right now. I know of the flash plugin ( 
http://mehack.com/twitter-streaming-api-from-javascript-with-a ) but that is 
only for proofs of concept right now, and there is no way of using oauth.

Cheers

Dan

-- 
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] Secure avatar URLs

2011-02-25 Thread Tim
I notice that avatar URLs on twimg.com subdomains have secure
equivalents.
e.g. http://a3.twimg.com/... maps to https://si2.twimg.com/...

Is there a reliable way for me to perform these mappings for
displaying avatars on a secure page?

Perhaps the profile image API end point needs a ssl=true parameter?
http://dev.twitter.com/doc/get/users/profile_image/:screen_name

Perhaps you could supply a list, so we can map them at code level?

-- 
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


Re: [twitter-dev] Re: Apps that Site Hack

2011-02-25 Thread M. Edward (Ed) Borasky
On Fri, 25 Feb 2011 11:16:54 +0100, Pascal Jürgens 
lists.pascal.juerg...@googlemail.com wrote:

How about a competition to develop spam-detection algorithms :)

Pascal


I don't see VCs / angels funding that sort of thing, so there's not 
likely a market.


--
http://twitter.com/znmeb http://borasky-research.net

A mathematician is a device for turning coffee into theorems. -- Paul 
Erdős


--
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] Still using statuses/user_timeline?

2011-02-25 Thread Aurph
hello,

I'm new to the group but I have a problem I could do with some advice
on.

I've been adding Tweets to my site for some time using Ajax and a URL
like:

http://twitter.com/statuses/user_timeline/148714212.json?callback

It's been behaving strangely recently, returning
incorrect id_str values so the direct links to the tweets on
twitter.com are coming back as 404s.

I suspect the URL I'm using is deprecated and perhaps this whole API
but
I'm not sure what the correct one is!

I'm only using javascript so can't use PHP or that for authentication,
it has to be a public feed
of users recent tweets.

I've read through the docs at http://dev.twitter.com
but for the life of me I can't find the correct URL I should be using.

Can anyone advise?

Thanks.

-- 
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] Implementing OAuth , PHP

2011-02-25 Thread Tweet Closer
Guys, I'm getting very confused moving to OAuth.

I've read and made notes on http://hueniverse.com/oauth/guide/ and
http://www.snipe.net/2009/07/writing-your-first-twitter-application-with-oauth/
but I'm missing something that must be obvious to everyone else. I'm
using Tijs Verkoyen's Twitter class.

I want to run http://classes.verkoyen.eu/twitter_oauth/docs#statusesusertimeline
to get a user's latest tweets.

The example code says:

?php
// require
require_once 'twitter.php';

// create instance
$twitter = new Twitter('your-consumer-key', 'your-consumer-
secret');

// set tokens
$twitter-setOAuthToken('your-token');
$twitter-setOAuthTokenSecret('your-token-secret');

// get users timeline
$response = $twitter-statusesUserTimeline();

// output
var_dump($response);
?

but that just looks like you provide everything .. two pairs of
authentication codes. Is that right? So my consumer key and secret
come from registering the app with twitter, and the token and token
secret come from when you authorize the app to use your Twitter
account, right, and they come back as GET parameters. I did that
probably a few months ago and can't see to re-do that process, is that
the problem? If I try to re-run that I get Woah there! This page is
no longer valid. It looks like someone already used the token
information you provided. Please return to the site that sent you to
this page and try again … it was probably an honest mistake.

Anyway, I'm trying the code above and getting back Invalid / expired
Token

Gizza clue :-)

Cheers
J

-- 
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


Re: [twitter-dev] Implementing OAuth , PHP

2011-02-25 Thread Peter Denton
if you are not too far down the road with Tiis Verkoyen's class, I can send
you an example using Abraham's oAuth library which will show you how to do
this.
I am guessing that you are looking at examples showing you a user coming,
authenticating, and then invoking actions on the users behalf. However, what
you want to do is to create an app, get that app's tokens, and do an action
server side.

On Fri, Feb 25, 2011 at 5:11 AM, Tweet Closer tweetclo...@googlemail.comwrote:

 Guys, I'm getting very confused moving to OAuth.

 I've read and made notes on http://hueniverse.com/oauth/guide/ and

 http://www.snipe.net/2009/07/writing-your-first-twitter-application-with-oauth/
 but I'm missing something that must be obvious to everyone else. I'm
 using Tijs Verkoyen's Twitter class.

 I want to run
 http://classes.verkoyen.eu/twitter_oauth/docs#statusesusertimeline
 to get a user's latest tweets.

 The example code says:

 ?php
 // require
 require_once 'twitter.php';

 // create instance
 $twitter = new Twitter('your-consumer-key', 'your-consumer-
 secret');

 // set tokens
 $twitter-setOAuthToken('your-token');
 $twitter-setOAuthTokenSecret('your-token-secret');

 // get users timeline
 $response = $twitter-statusesUserTimeline();

 // output
 var_dump($response);
 ?

 but that just looks like you provide everything .. two pairs of
 authentication codes. Is that right? So my consumer key and secret
 come from registering the app with twitter, and the token and token
 secret come from when you authorize the app to use your Twitter
 account, right, and they come back as GET parameters. I did that
 probably a few months ago and can't see to re-do that process, is that
 the problem? If I try to re-run that I get Woah there! This page is
 no longer valid. It looks like someone already used the token
 information you provided. Please return to the site that sent you to
 this page and try again … it was probably an honest mistake.

 Anyway, I'm trying the code above and getting back Invalid / expired
 Token

 Gizza clue :-)

 Cheers
 J

 --
 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 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


Re: [twitter-dev] Search API http response code 500

2011-02-25 Thread Matt Harris
Hey Zaver,

Repeating the query should work. If the error is persistent let us know what 
the term is so we can take a look.

Best,
@themattharris



On Feb 25, 2011, at 10:09, zaver zave...@hotmail.com wrote:

 Hello,
 
 I ve been getting a 500 response code lately on searching some
 keywords. How do i handle that code? Any help is greatly appreciated.
 
 Zaver
 
 -- 
 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 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] Fetching a user's entire timeline

2011-02-25 Thread James Wheare
OK so I'm not complaining about the 3200 limit here, but I would like
to know the most robust way to fetch all 3200 of a user's available
tweets.

At the moment I'm calling user_timeline recursively, 100 tweets at a
time (the maximum of 200 seems to timeout too often), passing in the
oldest status id from one call onto the next as the max_id parameter.

This usually works pretty well, but I'm relying on an assumption that
I now realise doesn't always seem to hold: I'm expecting the response
to only be an empty list when I reach the ~3200 limit. I've noticed
with some timelines that an empty list will sporadically be returned
well before this limit. If I keep trying the call I eventually get
results, and for some accounts it happens quite regularly, often
taking several attempts to get a response, but the empty list state
triggers my script's importing complete end state prematurely.
Obviously I can't rely on this assumption anymore.

I'm handling errors fine, but this isn't an error, it's an HTTP 200
response with an empty result set.

I've seen other apps first check the user's tweet count, then divide
Max(3200, total_count) by the number of tweets per page to get a page
count, and simply page++ their way through user_timeline. This seems
even less robust though, as the tweet count may sometimes change by
the time you get to the end of the list, and also, I've noticed the
3200 limit isn't exactly a hard cutoff.

Has anyone had any experience of this and can offer advice on how best
to deal with it. Seems like the 200 status is a bug in the API too.

Cheers,
- James

-- 
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] Correct way to handle statues id using PHP with twitter retweet api

2011-02-25 Thread tianye22
Hi All

I am trying to implement the retweet function using the statuses/
retweet/ api. I have encountered a very frustrating problem:

If I am passing the status id inside a variable, it does not work
Not working:

  $parameters = array();
  $url = 'statuses/retweet/'.$sid;
  $rtstring = $twitter-oAuthRequest($url, 'POST', $parameters);

However if I hard-coded the statues id inside the url, it works:

Working:
  $parameters = array();
  $url = 'statuses/retweet/41203690924818432';
  $rtstring = $twitter-oAuthRequest($url, 'POST', $parameters);

I have verified that the $sid does contain the correct id, I am really
confused here. Is there anything special in PHP of handing string and
integer? I am a newbiee to PHP.

Thanks for your help!

-- 
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] API stopped working

2011-02-25 Thread Coach Izzy
Hey fellow Twitter users, about a month ago I registered my blog to
send automatic tweets when postings.

I use the Tweet This v1.8.2  plug-in for my wordpress blog and it was
working well until this morning.  The post in my blog was supposed to
be broadcast like it's been in the past couple of weeks like it's been
doing but instead I found the OAuth was not functioning anymore.  I
reset the consumer key and secret but when I try to get to the access
token and secret, I get the following message:

?xml version=1.0 encoding=UTF-8 ?
- hash
  request/apps/718854/my_token/request
  errorInvalid / suspended application/error
  /hash

What I noticed when I logged into the developer account, is that my
application though registered, showed as inactive something I had not
seen in the past.  I have been trying to get around this problem
without much success and hopefully you guys can help shed some light.
Much Appreciated and all the best!

-- 
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


Re: [twitter-dev] Correct way to handle statues id using PHP with twitter retweet api

2011-02-25 Thread Abraham Williams
Some PHP installs have issues with ints the size of newer status_ids. Try
using `id_str` from the status object instead of `id`.

Also if you are using the latest version of TwitterOAuth I recommend
constructing your requests like this:

$rtstring = $twitter-post($url);

If you have paramaters pass them as the second argument.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Fri, Feb 25, 2011 at 10:43, tianye22 ye.henry.t...@gmail.com wrote:

 Hi All

 I am trying to implement the retweet function using the statuses/
 retweet/ api. I have encountered a very frustrating problem:

 If I am passing the status id inside a variable, it does not work
 Not working:

  $parameters = array();
  $url = 'statuses/retweet/'.$sid;
  $rtstring = $twitter-oAuthRequest($url, 'POST', $parameters);

 However if I hard-coded the statues id inside the url, it works:

 Working:
  $parameters = array();
  $url = 'statuses/retweet/41203690924818432';
  $rtstring = $twitter-oAuthRequest($url, 'POST', $parameters);

 I have verified that the $sid does contain the correct id, I am really
 confused here. Is there anything special in PHP of handing string and
 integer? I am a newbiee to PHP.

 Thanks for your help!

 --
 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 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


Re: [twitter-dev] Implementing OAuth , PHP

2011-02-25 Thread Tweet Closer
On Fri, Feb 25, 2011 at 5:55 PM, Peter Denton petermden...@gmail.comwrote:

 if you are not too far down the road with Tiis Verkoyen's class, I can send
 you an example using Abraham's oAuth library which will show you how to do
 this.
 I am guessing that you are looking at examples showing you a user coming,
 authenticating, and then invoking actions on the users behalf. However, what
 you want to do is to create an app, get that app's tokens, and do an action
 server side


Yes, you're right Peter, I don't think I made that clear, thanks. I have an
app that wants to access Twitter, that's basically it, and of course it was
working with basic auth.

Anyway, yes if you have other code, I've butted up against the Verkoyen wall
three times now and haven't managed to push through.

Cheers
J

-- 
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


Re: [twitter-dev] API stopped working

2011-02-25 Thread Matt Harris
Hey there,

You should have an email from our support team about this. If not I recommend 
contacting the team with the information about your application. They handle 
things like this and will be able to tell you more.

You can reach them through:
a...@twitter.com

Best
@themattharris



On Feb 25, 2011, at 14:32, Coach Izzy coach_i...@comcast.net wrote:

 Hey fellow Twitter users, about a month ago I registered my blog to
 send automatic tweets when postings.
 
 I use the Tweet This v1.8.2  plug-in for my wordpress blog and it was
 working well until this morning.  The post in my blog was supposed to
 be broadcast like it's been in the past couple of weeks like it's been
 doing but instead I found the OAuth was not functioning anymore.  I
 reset the consumer key and secret but when I try to get to the access
 token and secret, I get the following message:
 
 ?xml version=1.0 encoding=UTF-8 ?
 - hash
  request/apps/718854/my_token/request
  errorInvalid / suspended application/error
  /hash
 
 What I noticed when I logged into the developer account, is that my
 application though registered, showed as inactive something I had not
 seen in the past.  I have been trying to get around this problem
 without much success and hopefully you guys can help shed some light.
 Much Appreciated and all the best!
 
 -- 
 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 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: API stopped working

2011-02-25 Thread Coach Izzy
Thanks very much Matt!  Doing that right now.

Regards
@coach_izzy

On Feb 25, 2:05 pm, Matt Harris mhar...@twitter.com wrote:
 Hey there,

 You should have an email from our support team about this. If not I recommend 
 contacting the team with the information about your application. They handle 
 things like this and will be able to tell you more.

 You can reach them through:
     a...@twitter.com

 Best
 @themattharris

 On Feb 25, 2011, at 14:32, Coach Izzy coach_i...@comcast.net wrote:



  Hey fellow Twitter users, about a month ago I registered my blog to
  send automatic tweets when postings.

  I use the Tweet This v1.8.2  plug-in for my wordpress blog and it was
  working well until this morning.  The post in my blog was supposed to
  be broadcast like it's been in the past couple of weeks like it's been
  doing but instead I found the OAuth was not functioning anymore.  I
  reset the consumer key and secret but when I try to get to the access
  token and secret, I get the following message:

  ?xml version=1.0 encoding=UTF-8 ?
  - hash
   request/apps/718854/my_token/request
   errorInvalid / suspended application/error
   /hash

  What I noticed when I logged into the developer account, is that my
  application though registered, showed as inactive something I had not
  seen in the past.  I have been trying to get around this problem
  without much success and hopefully you guys can help shed some light.
  Much Appreciated and all the best!

  --
  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- Hide quoted 
  text -

 - Show quoted text -

-- 
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] Twitter stream shuts off every 60 seconds

2011-02-25 Thread jon
Hi,

If I try:
curl -d @tracking http://stream.twitter.com/1/statuses/filter.json -
uUsername:Password  tweets.json

This shuts off in exactly 60 seconds.  If I try the same command with
another account... it'll keep on going.

Is there any way I can check the status of my account and know when
I'll have full access to the stream again?  I'm trying to figure out
what's cutting off my stream.

Thanks!

-- 
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] setLocations

2011-02-25 Thread 1537 News
I am using the following

$stream-setLocations(array(array(-87.60603635063173,41.78233280134992,-87.5898572658539,41.813078558257345)

Most of my responses are outside this range from
(40.56190 - 42.46604)  (-87.35747  -88.65564)

I have 13,658 records
Approx 800 are within this range.

Is there anything I can do to increase the accuracy of the setLocation call?

Thanks
Harry Osoff


http://1537news.com/
Follow Us on Twitter http://twitter.com/1537news/
Facebook Fan 
Pagehttp://www.facebook.com/profile.php?id=10680443959#%21/pages/1537News/143582755669105?v=wall

-- 
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