[twitter-dev] Error: User is over daily status update limit.

2010-09-07 Thread outatime
When trying to post using the new OAuth system, I am getting a User
is over daily status update limit. error, but the account in question
has not posted anything since August 31st.  What gives?

-- 
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?hl=en


[twitter-dev] Empty trend list

2010-09-07 Thread Tim
Hi,

I'm writing an app that reads in the local and worldwide top trends
from api.twitter.com/1/trends/woeid.xml

Sometimes the xml comes back with no trends.  Why is this?

Thanks,
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?hl=en


[twitter-dev] Obtain email address after authentication

2010-09-07 Thread shanew
Why doesn't twitter include the user's email address in the account/
verify_credentials API?

Facebook offers this with their graph API.
Yahoo, Google, and others offer it via OpenID/AX.

It seems like such a useful attribute - eg. for 1-click self
registration into websites, auto subscription to mailing lists, etc.

I have no doubt this has been requested before, and will be again -
are there any plans to add it, possibly via specific consent?

-- 
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?hl=en


[twitter-dev] Dynamic URLs with oauth return url

2010-09-07 Thread Jeff Gladnick
I work for http://www.greatdentalwebsites.com and am trying to
configure the twitter integration to work with the new oauth system.

The problem is that our users, when granting access, need to be
redirected back to their own website.  The process works like this

1) Dentist is on http://theirdentalwebsite.com and they click the link
to let my dental website talk to twitter
2) They are forwarded to the twitter page, and they click yes
3) They are directed back to our website, http://www.greatdentalwebsites.com
to a special return url

The problem is when they get to #3, I don't know how to determine
which customer's website to send them back to after that.  All I have
in the url is their auth token thingy.

I can think of two ways to solve this:

1) Pass along an additional url back from twitter somehow so when they
hit our return url, we have their domain name as a url parameter
2) Pass the user back to their site in the first place, and handle the
return from twitter logic there.


Has anyone else had to deal with similar problems and how was it
solved?

-- 
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?hl=en


[twitter-dev] User Streams or Site Streams?

2010-09-07 Thread Rainux
Hello, I'm writing a Twitter client that acts as a XMPP bot. Users can
add the bot as buddy then bind their Twitter account, after that the
bot will use Streaming API to push home/mentions/dm and other user
interested stuffs to them. I found User Streams is suitable for this
since Site Streams not support home timeline.

Does my app conflict with Twitter's rules about User Streams?

-- 
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?hl=en


[twitter-dev] Using the API to Post to Twitter from a MOO

2010-09-07 Thread basil
Hi
I'm using an old school MOO to explore a Virtual World with my
students. We are using it to explore ethical issues surrounding the
Internet.

I'd set up a quest system, that posted to both Twitter and that other
not so well social networking site (FB) - with Clue 3 has been found
by Woger.

The code I used I found on the web - and as of the other day, it
stopped. Obviously!!!

17: con = `open_network_connection(twitter.com, 80) ! ANY';
18: if (typeof(con) == OBJ)
19:   notify(con, POST /statuses/update.json HTTP/1.1);
20:   notify(con, Host: twitter.com);
21:   notify(con, Authorization: Basic xxx==);
22:   notify(con, Content-Length: 88);
23:   notify(con, );
24:   notify(con, status=);
25:   notify(con, tostr(Clue 5 has been found by ,
player.name));
26: endif
27: $network:close(con);

My question is - is there anyone who can assist me to convert this to
the new system, or should I cut my losses and put it in the too hard
basket? I wanted to use Twitter to bring the MOO into the 21st
century, but, if it will be too hard, there are other things I can
code I should be doing.

Look forward to any advice

Paul

-- 
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?hl=en


[twitter-dev] Twitter - XAuth

2010-09-07 Thread Georgooty varghese
Dear Twitter,

I have used XAuth authentication used for my application. I have implemented
twitter client in C# on 1 month ago , Now these days I got gateway error
first time logging. Next time logging no pblm. I have no changed in code
side. If any updation in XAuth authentication mechanism. In my application i
couldn't post a tweet in malayalam/arabi language. How to solve this issue.

Any body please help me.

Regards,
George

-- 
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?hl=en


Re: [twitter-dev] Twitter - XAuth

2010-09-07 Thread Tom van der Woerdt
On 9/7/10 9:11 AM, Georgooty varghese wrote:
 Dear Twitter,
  
 I have used XAuth authentication used for my application. I have
 implemented twitter client in C# on 1 month ago , Now these days I got
 gateway error first time logging.
Just write some code to handle 500 errors - they happen a lot. It's
usually not a client issue.

 Next time logging no pblm. I have no
 changed in code side. If any updation in XAuth authentication mechanism.
 In my application i couldn't post a tweet in malayalam/arabi language.
 How to solve this issue.
Sounds like you aren't URL encoding the values properly.

 Any body please help me.
  
 Regards,
 George
  
 
 -- 
 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?hl=en

-- 
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?hl=en


Re: [twitter-dev] Twitter - XAuth

2010-09-07 Thread Georgooty varghese
Hi,
Thanks for your reply. How to handle 500 error.  I have post a tweet into
twitter in  english  using my twitter client.But I couldn't be able to post
a tweet in malayalam/arabi. Could u please explain me, how to encode url for
that.
Regards,
George

On Tue, Sep 7, 2010 at 2:31 PM, Tom van der Woerdt i...@tvdw.eu wrote:

 On 9/7/10 9:11 AM, Georgooty varghese wrote:
  Dear Twitter,
 
  I have used XAuth authentication used for my application. I have
  implemented twitter client in C# on 1 month ago , Now these days I got
  gateway error first time logging.
 Just write some code to handle 500 errors - they happen a lot. It's
 usually not a client issue.

  Next time logging no pblm. I have no
  changed in code side. If any updation in XAuth authentication mechanism.
  In my application i couldn't post a tweet in malayalam/arabi language.
  How to solve this issue.
 Sounds like you aren't URL encoding the values properly.

  Any body please help me.
 
  Regards,
  George
 
 
  --
  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?hl=en

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] Re: Obtain email address after authentication

2010-09-07 Thread Ken
Twitter has distinguished itself as a minimally invasive social
network. The API gives you the ability to replicate and build on the
communication model appreciated by Twitter users.

It's about brevity, it's lightweight and of course you can reach your
followers inbox by direct messaging, if the user accepts email
notifications.

Meanwhile, verify_credentials gives you what you need to set up their
account and log them in when they return. If you need a user's email
address, just ask them for it.

Ken

-- 
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?hl=en


[twitter-dev] help with accessing the streaming api

2010-09-07 Thread omri
def run (self):
status_url = http://stream.twitter.com/1/statuses/filter.json;
request = urllib2.Request(status_url)
print request
auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
request.add_header('Authorization', 'basic %s' % auth)
firehose = urllib2.urlopen(request)
for tweet in firehose:
print tweet

firehose.close

when printing the request i have  500 error, it is not reachable.

do you have an idea why?

-- 
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?hl=en


[twitter-dev] C# and OAuth

2010-09-07 Thread sashka
i'm using OAuthBase.cs from oauth.googlecode.com for generate
signature.
blockquotecodefont size=2 face=Courier New
color=blackfont color=#ffpublic/font font
color=#ffstatic/font font color=#ffvoid/font
Status_Update()
nbsp;nbsp;nbsp;nbsp;{
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;OAuthBase oAuth = font
color=#ffnew/font OAuthBase();
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font consumerKey = font color=#A31515My consumer key /font;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font consumerSecret = font color=#A31515 My consumer secret /
font;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font oauth_token = font color=#A31515 token /font;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font oauth_token_secret = font color=#A31515 token secret /
font;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#2B91AFUri/font
uri = font color=#ffnew/font font color=#2B91AFUri/
font(font color=#A31515http://api.twitter.com/1/statuses/
update.xml/font);
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font normUri;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font normParams;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font timeStamp = oAuth.GenerateTimeStamp();
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font nonce = oAuth.GenerateNonce();
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font oauth_signature = oAuth.GenerateSignature(uri, consumerKey,
consumerSecret, oauth_token, oauth_token_secret, font
color=#A31515POST/font, timeStamp, nonce,
OAuth.OAuthBase.SignatureTypes.HMACSHA1, font color=#ffout/
font normUri, font color=#ffout/font normParams);
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;WebClient wcl = font
color=#ffnew/font WebClient();
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;wcl.Headers.Add(font
color=#A31515Authorization: OAuth /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_nonce=\/font+ nonce +font
color=#A31515\, /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_signature_method=\HMAC-SHA1\, /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_timestamp=\/font+timeStamp+font
color=#A31515\, /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_consumer_key=\/font+consumerKey+font
color=#A31515\, /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_token=\/font+oauth_token+font
color=#A31515\, /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_signature=\/font+oauth_signature+font
color=#A31515\, /font +
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
color=#A31515oauth_version=\1.0\/font);
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;wcl.font
color=#2B91AFEncoding/font = System.Text.font
color=#2B91AFEncoding/font.UTF8;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#2B91AFConsole/
font.WriteLine(font color=#A31515Out:{0}?{1}/font, normUri,
normParams);
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
font reply = wcl.UploadString(normUri, font color=#A31515POST/
font, normParams);
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#2B91AFConsole/
font.WriteLine(reply);
nbsp;nbsp;nbsp;nbsp;}/font

font size=1 color=gray* This source code was highlighted with a
href=http://virtser.net/blog/post/source-code-highlighter.aspx;font
size=1 color=graySource Code Highlighter/font/a./font/
code/blockquote

Why don't work?

Unhandled Exception: System.Net.WebException: The remote server
returned an error: (417) Expectation Failed.

-- 
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?hl=en


[twitter-dev] Problems with parameter since_id

2010-09-07 Thread Alexandre
Hi Guys,

Well, I'm trying to use home_timeline with parameter since_id, but is
not working

if I use max_id, works well, but if I use since_id not work

http://api.twitter.com/1/statuses/home_timeline.xml?max_id=54321 (this
works)

http://api.twitter.com/1/statuses/home_timeline.xml?since_id=12345
(this dont work)

the error returned is:

(401) errorIncorrect signature/error

I'm doing OAuth authentication correctly

why only with since_id not working, but with max_id work ?


-- 
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?hl=en


Re: [twitter-dev] help with accessing the streaming api

2010-09-07 Thread Lenin
Dont you know that the BasicAuth has been disabled for good?

-- 
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?hl=en


Re: [twitter-dev] help with accessing the streaming api

2010-09-07 Thread Tom van der Woerdt
Not for Streams.

Tom


On 9/7/10 1:52 PM, Lenin wrote:
 Dont you know that the BasicAuth has been disabled for good?
 
 -- 
 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?hl=en

-- 
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?hl=en


Re: [twitter-dev] C# and OAuth

2010-09-07 Thread Tom van der Woerdt
I'd like to see the actual code instead of the stuff you posted. :-)

Tom


On 9/7/10 11:47 AM, sashka wrote:
 i'm using OAuthBase.cs from oauth.googlecode.com for generate
 signature.
 blockquotecodefont size=2 face=Courier New
 color=blackfont color=#ffpublic/font font
 color=#ffstatic/font font color=#ffvoid/font
 Status_Update()
 nbsp;nbsp;nbsp;nbsp;{
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;OAuthBase oAuth = font
 color=#ffnew/font OAuthBase();
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font consumerKey = font color=#A31515My consumer key /font;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font consumerSecret = font color=#A31515 My consumer secret /
 font;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font oauth_token = font color=#A31515 token /font;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font oauth_token_secret = font color=#A31515 token secret /
 font;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#2B91AFUri/font
 uri = font color=#ffnew/font font color=#2B91AFUri/
 font(font color=#A31515http://api.twitter.com/1/statuses/
 update.xml/font);
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font normUri;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font normParams;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font timeStamp = oAuth.GenerateTimeStamp();
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font nonce = oAuth.GenerateNonce();
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font oauth_signature = oAuth.GenerateSignature(uri, consumerKey,
 consumerSecret, oauth_token, oauth_token_secret, font
 color=#A31515POST/font, timeStamp, nonce,
 OAuth.OAuthBase.SignatureTypes.HMACSHA1, font color=#ffout/
 font normUri, font color=#ffout/font normParams);
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;WebClient wcl = font
 color=#ffnew/font WebClient();
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;wcl.Headers.Add(font
 color=#A31515Authorization: OAuth /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_nonce=\/font+ nonce +font
 color=#A31515\, /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_signature_method=\HMAC-SHA1\, /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_timestamp=\/font+timeStamp+font
 color=#A31515\, /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_consumer_key=\/font+consumerKey+font
 color=#A31515\, /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_token=\/font+oauth_token+font
 color=#A31515\, /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_signature=\/font+oauth_signature+font
 color=#A31515\, /font +
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font
 color=#A31515oauth_version=\1.0\/font);
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;wcl.font
 color=#2B91AFEncoding/font = System.Text.font
 color=#2B91AFEncoding/font.UTF8;
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#2B91AFConsole/
 font.WriteLine(font color=#A31515Out:{0}?{1}/font, normUri,
 normParams);
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#ffstring/
 font reply = wcl.UploadString(normUri, font color=#A31515POST/
 font, normParams);
 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;font color=#2B91AFConsole/
 font.WriteLine(reply);
 nbsp;nbsp;nbsp;nbsp;}/font
 
 font size=1 color=gray* This source code was highlighted with a
 href=http://virtser.net/blog/post/source-code-highlighter.aspx;font
 size=1 color=graySource Code Highlighter/font/a./font/
 code/blockquote
 
 Why don't work?
 
 Unhandled Exception: System.Net.WebException: The remote server
 returned an error: (417) Expectation Failed.
 

-- 
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?hl=en


[twitter-dev] profile image upload 500 error

2010-09-07 Thread lch1721
Hi guys!
I am try to upload image for profile.
i check the Post, multipart, oauth sign, image to byte[],
but 500 error return
what miss i take?

-- 
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?hl=en


[twitter-dev] Streaming API

2010-09-07 Thread Rajat
Hi All,

I am a bit torn on which API to use for my application. Have looked in
twitter dev pages and did search internet but couldn't find
comprehensive information.

I need to get tweets from certain users in my application. I don't
know how many users at this moment but I would like to build a
scalable solution. I don't care if the tweets are not received real
time as long as the delay is not in hours or days.

My understanding is that I could either use streaming API (statuses/
filter) or timelines (friends_timeline).

1) Is there a reason for someone to use one over other (other than
real time updates using streaming api)?
2) Which method twitter team recommends developer to use for future
applications?
3) Are streaming APIs available for production?

Sorry if some or all of these questions are already answered
somewhere. I couldn't locate the information hence posting here.

Any inputs in this regard will be greatly appreciated.

Thanks in advance,
Rajat

-- 
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?hl=en


Re: [twitter-dev] User Streams or Site Streams?

2010-09-07 Thread John Kalucki
This app cannot use User Streams and must only use Site Streams. User
Streams is for desktop applications now, and soon will be available for all
single-user-per-host applications.

Site Streams are for all large scale integrations -- many streams to a
single host, as Site Streams bundles multiple User Streams onto a single
connection. To use User Streams would consume an awful lot of resources on
both ends.

Site Steams does and will support Home Timelines -- but we're not ready to
beta this feature just yet due to a performance issue that we're working
through.

-John Kalucki
http://twitter.com/jkalucki
Twitter Inc.


On Mon, Sep 6, 2010 at 11:36 PM, Rainux rai...@gmail.com wrote:

 Hello, I'm writing a Twitter client that acts as a XMPP bot. Users can
 add the bot as buddy then bind their Twitter account, after that the
 bot will use Streaming API to push home/mentions/dm and other user
 interested stuffs to them. I found User Streams is suitable for this
 since Site Streams not support home timeline.

 Does my app conflict with Twitter's rules about User Streams?

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] More xAuth grief

2010-09-07 Thread Garry
Hi all,
I have used the xAuth system to get myself this HTTP response:

HTTP/1.1 200 OK
(Clipped lots of other headers)

oauth_token=17396968-
lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNXXK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_expires=0

OK, I guess I need to use at least part of this to sign my POST
requests for a status update, but I'm feeling pretty stupid at the
moment, and I'm not sure what to use. I've got the POST body like
this:

POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
%2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
%3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
%3Dsndtweet%26status%3DTest%2520from%2520OAuth

And signing it with

CONSUMERSECRETKEY++oauth_token_secret

Is that even vaguely correct?

The OAuth tester is awesome, but I'm not sure if I'm even signing the
right stuff with the right thing at the moment...

Thanks a lot in advance...

Garry

-- 
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?hl=en


[twitter-dev] Re: What happens after twitter user denied access to the application?

2010-09-07 Thread jaronbarends
When a user denies your app access, it says something like you denied
YourAppName access... The text YourAppName is a link, and when the
users clicks that, he gets redirected to your callback url, with an
additional parameter denied=someLongVariable.

So you can catch this scenario easily by looking for the denied
getvar, but it will only work if the user decides to click the link
back to your app.


On Sep 7, 6:49 am, K kuts...@gmail.com wrote:
 Hi,
 When twitter user denies access to my application, it just gets
 redirected to the denied page and callback URL never gets called. I
 would like to handle the situation  better when access is denied..I
 saw bunch of similar posts in 2009, just wondering if this feature
 ever got implemented, and if so, if I can find a relevant
 documentation on how to implement this...

 Thank you for your help!
 K

-- 
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?hl=en


Re: [twitter-dev] More xAuth grief

2010-09-07 Thread Tom van der Woerdt
I spotted a source in your Base String. You don't need to send that one.

As long as you send these properly, it will work :
oauth_consumer_key  wd0XX6G9m9O7OYRg
oauth_nonce e68644aad6fd745d5022
oauth_signature_method  HMAC-SHA1
oauth_timestamp 1283866974
oauth_token 17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
oauth_version   1.0
source  sndtweet
status  Test from OAuth
oauth_signature ??

Never add things to your base string if you don't send them, and make
sure to add everything you send. :-)

Tom


On 9/7/10 3:54 PM, Garry wrote:
 Hi all,
 I have used the xAuth system to get myself this HTTP response:
 
 HTTP/1.1 200 OK
 (Clipped lots of other headers)
 
 oauth_token=17396968-
 lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNXXK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_expires=0
 
 OK, I guess I need to use at least part of this to sign my POST
 requests for a status update, but I'm feeling pretty stupid at the
 moment, and I'm not sure what to use. I've got the POST body like
 this:
 
 POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
 %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
 %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
 lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
 %3Dsndtweet%26status%3DTest%2520from%2520OAuth
 
 And signing it with
 
 CONSUMERSECRETKEY++oauth_token_secret
 
 Is that even vaguely correct?
 
 The OAuth tester is awesome, but I'm not sure if I'm even signing the
 right stuff with the right thing at the moment...
 
 Thanks a lot in advance...
 
 Garry
 

-- 
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?hl=en


Re: [twitter-dev] Streaming API

2010-09-07 Thread John Kalucki
You should use the Streaming API for large scale integrations. We're not
doing much whitelisting for the REST API at the moment, but the shadow role
on the Streaming API is generally available. If all of your users are
public, use the shadow role on stream.twitter.com/1/statuses to get all of
their statuses, but not their timelines. This feature has been in production
for over a year.

If you have OAuth tokens for the users, you can use the Site Streams beta to
get protected user's statuses, but currently you will also get a lot of
other information for them as well.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Tue, Sep 7, 2010 at 6:39 AM, Tom van der Woerdt i...@tvdw.eu wrote:

 1) Yes: the timelines are easier to use and more flexible, while the
 streaming API gives you realtime statuses and no problems with rate limits.
 2) Streams. I'm not part of the Twitter team, but I really think that
 they would recommend Streams. Of course, it depends a bit on the situation.
 3) I think so, yes.

 Tom


 On 9/7/10 3:31 PM, Rajat wrote:
  Hi All,
 
  I am a bit torn on which API to use for my application. Have looked in
  twitter dev pages and did search internet but couldn't find
  comprehensive information.
 
  I need to get tweets from certain users in my application. I don't
  know how many users at this moment but I would like to build a
  scalable solution. I don't care if the tweets are not received real
  time as long as the delay is not in hours or days.
 
  My understanding is that I could either use streaming API (statuses/
  filter) or timelines (friends_timeline).
 
  1) Is there a reason for someone to use one over other (other than
  real time updates using streaming api)?
  2) Which method twitter team recommends developer to use for future
  applications?
  3) Are streaming APIs available for production?
 
  Sorry if some or all of these questions are already answered
  somewhere. I couldn't locate the information hence posting here.
 
  Any inputs in this regard will be greatly appreciated.
 
  Thanks in advance,
  Rajat
 

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] Re: More xAuth grief

2010-09-07 Thread Garry
Thanks Tom, OK, I've removed the source parameter, still no luck... My
new POST:

POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
%2Fupdate.xmloauth_consumer_key%3Dwd0fPjX9m9O7OYRg%26oauth_nonce
%3Ddf4d3f58753ebc507840%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1283868421%26oauth_token%3D17396968-
lorGbfmR4dJpPi98Xjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26status
%3DTest%2520from%2520OAuth

I think maybe the problem is my signing, what should I be signing this
with? I'm not sure if I should be using the tokensecret from my first
xAuth call, or is it something else?

Thanks

Garry

On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 I spotted a source in your Base String. You don't need to send that one.

 As long as you send these properly, it will work :
 oauth_consumer_key      wd0XX6G9m9O7OYRg
 oauth_nonce     e68644aad6fd745d5022
 oauth_signature_method  HMAC-SHA1
 oauth_timestamp 1283866974
 oauth_token     17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
 oauth_version   1.0
 source  sndtweet
 status  Test from OAuth
 oauth_signature ??

 Never add things to your base string if you don't send them, and make
 sure to add everything you send. :-)

 Tom

 On 9/7/10 3:54 PM, Garry wrote:



  Hi all,
  I have used the xAuth system to get myself this HTTP response:

  HTTP/1.1 200 OK
  (Clipped lots of other headers)

  oauth_token=17396968-
  lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX 
  XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp 
  ires=0

  OK, I guess I need to use at least part of this to sign my POST
  requests for a status update, but I'm feeling pretty stupid at the
  moment, and I'm not sure what to use. I've got the POST body like
  this:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
  %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
  lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
  %3Dsndtweet%26status%3DTest%2520from%2520OAuth

  And signing it with

  CONSUMERSECRETKEY++oauth_token_secret

  Is that even vaguely correct?

  The OAuth tester is awesome, but I'm not sure if I'm even signing the
  right stuff with the right thing at the moment...

  Thanks a lot in advance...

  Garry

-- 
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?hl=en


Re: [twitter-dev] Re: More xAuth grief

2010-09-07 Thread Tom van der Woerdt
You sign using consumersecretusersecret -- the 2 secrets.

Tom


On 9/7/10 4:13 PM, Garry wrote:
 Thanks Tom, OK, I've removed the source parameter, still no luck... My
 new POST:
 
 POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
 %2Fupdate.xmloauth_consumer_key%3Dwd0fPjX9m9O7OYRg%26oauth_nonce
 %3Ddf4d3f58753ebc507840%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283868421%26oauth_token%3D17396968-
 lorGbfmR4dJpPi98Xjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26status
 %3DTest%2520from%2520OAuth
 
 I think maybe the problem is my signing, what should I be signing this
 with? I'm not sure if I should be using the tokensecret from my first
 xAuth call, or is it something else?
 
 Thanks
 
 Garry
 
 On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 I spotted a source in your Base String. You don't need to send that one.

 As long as you send these properly, it will work :
 oauth_consumer_key  wd0XX6G9m9O7OYRg
 oauth_nonce e68644aad6fd745d5022
 oauth_signature_method  HMAC-SHA1
 oauth_timestamp 1283866974
 oauth_token 17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
 oauth_version   1.0
 source  sndtweet
 status  Test from OAuth
 oauth_signature ??

 Never add things to your base string if you don't send them, and make
 sure to add everything you send. :-)

 Tom

 On 9/7/10 3:54 PM, Garry wrote:



 Hi all,
 I have used the xAuth system to get myself this HTTP response:

 HTTP/1.1 200 OK
 (Clipped lots of other headers)

 oauth_token=17396968-
 lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX 
 XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp 
 ires=0

 OK, I guess I need to use at least part of this to sign my POST
 requests for a status update, but I'm feeling pretty stupid at the
 moment, and I'm not sure what to use. I've got the POST body like
 this:

 POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
 %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
 %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
 lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
 %3Dsndtweet%26status%3DTest%2520from%2520OAuth

 And signing it with

 CONSUMERSECRETKEY++oauth_token_secret

 Is that even vaguely correct?

 The OAuth tester is awesome, but I'm not sure if I'm even signing the
 right stuff with the right thing at the moment...

 Thanks a lot in advance...

 Garry
 

-- 
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?hl=en


[twitter-dev] Re: More xAuth grief

2010-09-07 Thread Garry
I've got it Tom! I got the order of my parameters different in what I
was signing and what I was sending! Doh!

Thanks so much for the help.

Garry

On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 I spotted a source in your Base String. You don't need to send that one.

 As long as you send these properly, it will work :
 oauth_consumer_key      wd0XX6G9m9O7OYRg
 oauth_nonce     e68644aad6fd745d5022
 oauth_signature_method  HMAC-SHA1
 oauth_timestamp 1283866974
 oauth_token     17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
 oauth_version   1.0
 source  sndtweet
 status  Test from OAuth
 oauth_signature ??

 Never add things to your base string if you don't send them, and make
 sure to add everything you send. :-)

 Tom

 On 9/7/10 3:54 PM, Garry wrote:



  Hi all,
  I have used the xAuth system to get myself this HTTP response:

  HTTP/1.1 200 OK
  (Clipped lots of other headers)

  oauth_token=17396968-
  lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX 
  XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp 
  ires=0

  OK, I guess I need to use at least part of this to sign my POST
  requests for a status update, but I'm feeling pretty stupid at the
  moment, and I'm not sure what to use. I've got the POST body like
  this:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
  %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
  lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
  %3Dsndtweet%26status%3DTest%2520from%2520OAuth

  And signing it with

  CONSUMERSECRETKEY++oauth_token_secret

  Is that even vaguely correct?

  The OAuth tester is awesome, but I'm not sure if I'm even signing the
  right stuff with the right thing at the moment...

  Thanks a lot in advance...

  Garry

-- 
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?hl=en


Re: [twitter-dev] help with accessing the streaming api

2010-09-07 Thread John Kalucki
The Streaming API will print a short text message along with errors that is
often a very explicit indication of the problem. I don't think it throws 500
errors (see: http://dev.twitter.com/pages/streaming_api_response_codes) so
something odd is going on. If anything, it is throwing a 406, as you haven't
provided parameters to track.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com wrote:

 def run (self):
status_url = http://stream.twitter.com/1/statuses/filter.json;
request = urllib2.Request(status_url)
print request
auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
request.add_header('Authorization', 'basic %s' % auth)
firehose = urllib2.urlopen(request)
for tweet in firehose:
print tweet

firehose.close

 when printing the request i have  500 error, it is not reachable.

 do you have an idea why?

 --
 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Error: User is over daily status update limit.

2010-09-07 Thread Taylor Singletary
What's the name of the account having this problem?

Taylor

On Mon, Sep 6, 2010 at 6:19 PM, outatime outtat...@gmail.com wrote:
 When trying to post using the new OAuth system, I am getting a User
 is over daily status update limit. error, but the account in question
 has not posted anything since August 31st.  What gives?

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] Re: More than five weeks of waiting for wihitelisting?

2010-09-07 Thread David Toussaint
Sorry, no one wanting to help on the issue?

On 3 Sep., 18:07, David Toussaint david.toussa...@azionare.de wrote:
 Hi guys,

 Our company is running a service called twittercrawl in Germany and
 got an IP whitelisted for that a while ago. We now are planning to
 expand that service to other countrys and need another IP whitelisted
 for that. Unfortunately that takes a bit longer than expected and than
 previously experienced. We posted two request for now, using the
 accounts @ralphsonntag and @JeyPie.

 What could be the reasons for taking that long? Are you still trying
 to catch up since the soccer World Championship? Would you mind
 looking into that issue?

 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?hl=en


Re: [twitter-dev] Re: More than five weeks of waiting for wihitelisting?

2010-09-07 Thread Taylor Singletary
We're still backed up considerably and taking a divide and conquer
approach, doing both most recent submissions and older submissions
alternately. Due to the volume of requests, we cannot promise a timely
explicit rejection notice for some submissions. Our whitelisting
criteria are more strict than in the past, and previous whitelisting
will not necessarily guarantee additional allowances.

Thanks,
Taylor

On Tue, Sep 7, 2010 at 7:47 AM, David Toussaint
david.toussa...@azionare.de wrote:
 Sorry, no one wanting to help on the issue?

 On 3 Sep., 18:07, David Toussaint david.toussa...@azionare.de wrote:
 Hi guys,

 Our company is running a service called twittercrawl in Germany and
 got an IP whitelisted for that a while ago. We now are planning to
 expand that service to other countrys and need another IP whitelisted
 for that. Unfortunately that takes a bit longer than expected and than
 previously experienced. We posted two request for now, using the
 accounts @ralphsonntag and @JeyPie.

 What could be the reasons for taking that long? Are you still trying
 to catch up since the soccer World Championship? Would you mind
 looking into that issue?

 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] profile image upload 500 error

2010-09-07 Thread Taylor Singletary
We've made considerable improvements to the profile image uploading process
recently that should, in general, decrease the amount of spurious 500 errors
you receive when uploading. This means that when a 500 occurs, it's likely
something exceptional or you're using outdated endpoints.

Can you send an example of the HTTP headers you are using for your request,
a truncated example of your POST body, and the explicit URLs you are
executing? Please be sure you are using api.twitter.com/1/* for all REST API
operations.

Thanks,
Taylor

On Tue, Sep 7, 2010 at 5:55 AM, lch1721 lch1...@gmail.com wrote:

 Hi guys!
 I am try to upload image for profile.
 i check the Post, multipart, oauth sign, image to byte[],
 but 500 error return
 what miss i take?

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] understanding data returned in arrays.

2010-09-07 Thread Bob Aiello
Hi everyone,

I am struggling a bit to find the right API reference that explains
how to work with the data that is returned from an expression like
$content = $connection-get('friends/ids', array('screen_name' =
'bobaiello'));

where get is shown below (as in Abraham William's excellent examples).

I am struggling with understanding:
1. how to parse the array returned in $connection
2. how to implement a curser to get the next batch of responses
(twitter seems to give me the first thousand only)
3. is the array one dimensional or a more complex structure (print_r
leads me to believe the latter)

any help or pointing me in the right direction would be greatly
appreciated.


Bob
http://www.linkedin.com/in/BobAiello
twitter: bobaiello, cmbestpractices, yellowspiderinc

  /**
   * GET wrapper for oAuthRequest.
   */
  function get($url, $parameters = array()) {
$response = $this-oAuthRequest($url, 'GET', $parameters);
echo mytest =.$response;
if ($this-format === 'json'  $this-decode_json) {
  return json_decode($response);
}
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?hl=en


[twitter-dev] C# and OAuth

2010-09-07 Thread sashka
i'm using OAuthBase.cs from oauth.googlecode.com for generate
signature.

public static void
Status_Update()
{
  OAuthBase oAuth = new OAuthBase();

  string consumerKey = My consumer key ;
  string consumerSecret =  My consumer secret ;
  string oauth_token =  token ;
  string oauth_token_secret =  token secret ;
  Uri
uri = new Uri(http://api.twitter.com/1/statuses/
update.xml);

  string normUri;
  string normParams;

  string timeStamp = oAuth.GenerateTimeStamp();
  string nonce = oAuth.GenerateNonce();
  string oauth_signature = oAuth.GenerateSignature(uri,
consumerKey,
consumerSecret, oauth_token, oauth_token_secret, POST, timeStamp,
nonce,
OAuth.OAuthBase.SignatureTypes.HMACSHA1, out normUri, out normParams);

  WebClient wcl = new WebClient();
  wcl.Headers.Add(Authorization: OAuth  +
oauth_nonce=\+ nonce +\,  +
oauth_signature_method=\HMAC-SHA1\,  +
oauth_timestamp=\+timeStamp+\,  +
oauth_consumer_key=\+consumerKey+\,  +
oauth_token=\+oauth_token+\,  +
oauth_signature=\+oauth_signature+\,  +
oauth_version=\1.0\);

  wcl.Encoding = System.Text.Encoding.UTF8;
  Console.WriteLine(Out:{0}?{1}, normUri,
normParams);
  string reply = wcl.UploadString(normUri, POST, normParams);
  Console.WriteLine(reply);
}
Why don't work?

Unhandled Exception: System.Net.WebException: The remote server
returned an error: (417) Expectation Failed.

-- 
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?hl=en


Re: [twitter-dev] C# and OAuth

2010-09-07 Thread Taylor Singletary
Hi Sashka,

Take a look at this article regarding this error:
http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c-resolved
You may need to instruct the HTTP client to not send the Expect:
100-Continue HTTP header.

Taylor

On Tue, Sep 7, 2010 at 7:14 AM, sashka shpa...@gmail.com wrote:

 i'm using OAuthBase.cs from oauth.googlecode.com for generate
 signature.

 public static void
 Status_Update()
    {
      OAuthBase oAuth = new OAuthBase();

      string consumerKey = My consumer key ;
      string consumerSecret =  My consumer secret ;
      string oauth_token =  token ;
      string oauth_token_secret =  token secret ;
      Uri
 uri = new Uri(http://api.twitter.com/1/statuses/
 update.xml);

      string normUri;
      string normParams;

      string timeStamp = oAuth.GenerateTimeStamp();
      string nonce = oAuth.GenerateNonce();
      string oauth_signature = oAuth.GenerateSignature(uri,
 consumerKey,
 consumerSecret, oauth_token, oauth_token_secret, POST, timeStamp,
 nonce,
 OAuth.OAuthBase.SignatureTypes.HMACSHA1, out normUri, out normParams);

      WebClient wcl = new WebClient();
      wcl.Headers.Add(Authorization: OAuth  +
        oauth_nonce=\+ nonce +\,  +
        oauth_signature_method=\HMAC-SHA1\,  +
        oauth_timestamp=\+timeStamp+\,  +
        oauth_consumer_key=\+consumerKey+\,  +
        oauth_token=\+oauth_token+\,  +
        oauth_signature=\+oauth_signature+\,  +
        oauth_version=\1.0\);

      wcl.Encoding = System.Text.Encoding.UTF8;
      Console.WriteLine(Out:{0}?{1}, normUri,
 normParams);
      string reply = wcl.UploadString(normUri, POST, normParams);
      Console.WriteLine(reply);
    }
 Why don't work?

 Unhandled Exception: System.Net.WebException: The remote server
 returned an error: (417) Expectation Failed.

 --
 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?hl=en

-- 
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?hl=en


[twitter-dev] Re: More than five weeks of waiting for wihitelisting?

2010-09-07 Thread David Toussaint
Hi Taylor,

Thanks for your reply! Is there any additional information we can
provide to help you with our request?

Regards,
David


On 7 Sep., 17:00, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 We're still backed up considerably and taking a divide and conquer
 approach, doing both most recent submissions and older submissions
 alternately. Due to the volume of requests, we cannot promise a timely
 explicit rejection notice for some submissions. Our whitelisting
 criteria are more strict than in the past, and previous whitelisting
 will not necessarily guarantee additional allowances.

 Thanks,
 Taylor

 On Tue, Sep 7, 2010 at 7:47 AM, David Toussaint

 david.toussa...@azionare.de wrote:
  Sorry, no one wanting to help on the issue?

  On 3 Sep., 18:07, David Toussaint david.toussa...@azionare.de wrote:
  Hi guys,

  Our company is running a service called twittercrawl in Germany and
  got an IP whitelisted for that a while ago. We now are planning to
  expand that service to other countrys and need another IP whitelisted
  for that. Unfortunately that takes a bit longer than expected and than
  previously experienced. We posted two request for now, using the
  accounts @ralphsonntag and @JeyPie.

  What could be the reasons for taking that long? Are you still trying
  to catch up since the soccer World Championship? Would you mind
  looking into that issue?

  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?hl=en

-- 
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?hl=en


[twitter-dev] Re: More xAuth grief

2010-09-07 Thread Garry
Hello again Tom,
OK, I've got my POST status update working, but now I want to GET
direct messages. Here is my GET base string:

GEThttp%3A%2F%2Ftwitter.com%2Fdirect_messages.xmloauth_consumer_key
%3Dwd0fPjdiRT6G9m9O7OYRg%26oauth_nonce
%3D8c8faf86e772390fb526%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1283872376%26oauth_token%3D17396968-
lorGbfmR4dJpPi98H7kmynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26count
%3D20

The sig checker reports:

Bad sorting!

All Base String parameters (query and POST parameters) must be sorted
alphabetically.

But I'm only providing one parameter at the moment, count, so is
that correct?

Thanks a lot

Garry

On Sep 7, 3:16 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 You sign using consumersecretusersecret -- the 2 secrets.

 Tom

 On 9/7/10 4:13 PM, Garry wrote:



  Thanks Tom, OK, I've removed the source parameter, still no luck... My
  new POST:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0fPjX9m9O7OYRg%26oauth_nonce
  %3Ddf4d3f58753ebc507840%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283868421%26oauth_token%3D17396968-
  lorGbfmR4dJpPi98Xjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26status
  %3DTest%2520from%2520OAuth

  I think maybe the problem is my signing, what should I be signing this
  with? I'm not sure if I should be using the tokensecret from my first
  xAuth call, or is it something else?

  Thanks

  Garry

  On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
  I spotted a source in your Base String. You don't need to send that one.

  As long as you send these properly, it will work :
  oauth_consumer_key      wd0XX6G9m9O7OYRg
  oauth_nonce     e68644aad6fd745d5022
  oauth_signature_method  HMAC-SHA1
  oauth_timestamp 1283866974
  oauth_token     17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
  oauth_version   1.0
  source  sndtweet
  status  Test from OAuth
  oauth_signature ??

  Never add things to your base string if you don't send them, and make
  sure to add everything you send. :-)

  Tom

  On 9/7/10 3:54 PM, Garry wrote:

  Hi all,
  I have used the xAuth system to get myself this HTTP response:

  HTTP/1.1 200 OK
  (Clipped lots of other headers)

  oauth_token=17396968-
  lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX
   
  XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp
   ires=0

  OK, I guess I need to use at least part of this to sign my POST
  requests for a status update, but I'm feeling pretty stupid at the
  moment, and I'm not sure what to use. I've got the POST body like
  this:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
  %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
  lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
  %3Dsndtweet%26status%3DTest%2520from%2520OAuth

  And signing it with

  CONSUMERSECRETKEY++oauth_token_secret

  Is that even vaguely correct?

  The OAuth tester is awesome, but I'm not sure if I'm even signing the
  right stuff with the right thing at the moment...

  Thanks a lot in advance...

  Garry

-- 
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?hl=en


Re: [twitter-dev] Re: More xAuth grief

2010-09-07 Thread Taylor Singletary
Hi Garry,

When you present the count parameter in this context, it should be
prior to oauth_consumer_key, as c comes before o. The oauth_*
parameters in the base string must be sorted along-side any other
query/POST parameters, like count

Taylor

On Tue, Sep 7, 2010 at 8:15 AM, Garry taylor.ga...@gmail.com wrote:
 Hello again Tom,
 OK, I've got my POST status update working, but now I want to GET
 direct messages. Here is my GET base string:

 GEThttp%3A%2F%2Ftwitter.com%2Fdirect_messages.xmloauth_consumer_key
 %3Dwd0fPjdiRT6G9m9O7OYRg%26oauth_nonce
 %3D8c8faf86e772390fb526%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283872376%26oauth_token%3D17396968-
 lorGbfmR4dJpPi98H7kmynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26count
 %3D20

 The sig checker reports:

 Bad sorting!

 All Base String parameters (query and POST parameters) must be sorted
 alphabetically.

 But I'm only providing one parameter at the moment, count, so is
 that correct?

 Thanks a lot

 Garry

 On Sep 7, 3:16 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 You sign using consumersecretusersecret -- the 2 secrets.

 Tom

 On 9/7/10 4:13 PM, Garry wrote:



  Thanks Tom, OK, I've removed the source parameter, still no luck... My
  new POST:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0fPjX9m9O7OYRg%26oauth_nonce
  %3Ddf4d3f58753ebc507840%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283868421%26oauth_token%3D17396968-
  lorGbfmR4dJpPi98Xjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26status
  %3DTest%2520from%2520OAuth

  I think maybe the problem is my signing, what should I be signing this
  with? I'm not sure if I should be using the tokensecret from my first
  xAuth call, or is it something else?

  Thanks

  Garry

  On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
  I spotted a source in your Base String. You don't need to send that one.

  As long as you send these properly, it will work :
  oauth_consumer_key      wd0XX6G9m9O7OYRg
  oauth_nonce     e68644aad6fd745d5022
  oauth_signature_method  HMAC-SHA1
  oauth_timestamp 1283866974
  oauth_token     17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
  oauth_version   1.0
  source  sndtweet
  status  Test from OAuth
  oauth_signature ??

  Never add things to your base string if you don't send them, and make
  sure to add everything you send. :-)

  Tom

  On 9/7/10 3:54 PM, Garry wrote:

  Hi all,
  I have used the xAuth system to get myself this HTTP response:

  HTTP/1.1 200 OK
  (Clipped lots of other headers)

  oauth_token=17396968-
  lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX
   
  XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp
   ires=0

  OK, I guess I need to use at least part of this to sign my POST
  requests for a status update, but I'm feeling pretty stupid at the
  moment, and I'm not sure what to use. I've got the POST body like
  this:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
  %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
  lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
  %3Dsndtweet%26status%3DTest%2520from%2520OAuth

  And signing it with

  CONSUMERSECRETKEY++oauth_token_secret

  Is that even vaguely correct?

  The OAuth tester is awesome, but I'm not sure if I'm even signing the
  right stuff with the right thing at the moment...

  Thanks a lot in advance...

  Garry

 --
 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Re: More xAuth grief

2010-09-07 Thread Tom van der Woerdt
You also have the oauth_* parameters. You need to sort those too ;-) 'c'
goes before 'o' so count=20 goes before the oauth_* parameters.

Tom


On 9/7/10 5:15 PM, Garry wrote:
 Hello again Tom,
 OK, I've got my POST status update working, but now I want to GET
 direct messages. Here is my GET base string:
 
 GEThttp%3A%2F%2Ftwitter.com%2Fdirect_messages.xmloauth_consumer_key
 %3Dwd0fPjdiRT6G9m9O7OYRg%26oauth_nonce
 %3D8c8faf86e772390fb526%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283872376%26oauth_token%3D17396968-
 lorGbfmR4dJpPi98H7kmynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26count
 %3D20
 
 The sig checker reports:
 
 Bad sorting!
 
 All Base String parameters (query and POST parameters) must be sorted
 alphabetically.
 
 But I'm only providing one parameter at the moment, count, so is
 that correct?
 
 Thanks a lot
 
 Garry
 
 On Sep 7, 3:16 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 You sign using consumersecretusersecret -- the 2 secrets.

 Tom

 On 9/7/10 4:13 PM, Garry wrote:



 Thanks Tom, OK, I've removed the source parameter, still no luck... My
 new POST:

 POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
 %2Fupdate.xmloauth_consumer_key%3Dwd0fPjX9m9O7OYRg%26oauth_nonce
 %3Ddf4d3f58753ebc507840%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283868421%26oauth_token%3D17396968-
 lorGbfmR4dJpPi98Xjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26status
 %3DTest%2520from%2520OAuth

 I think maybe the problem is my signing, what should I be signing this
 with? I'm not sure if I should be using the tokensecret from my first
 xAuth call, or is it something else?

 Thanks

 Garry

 On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 I spotted a source in your Base String. You don't need to send that one.

 As long as you send these properly, it will work :
 oauth_consumer_key  wd0XX6G9m9O7OYRg
 oauth_nonce e68644aad6fd745d5022
 oauth_signature_method  HMAC-SHA1
 oauth_timestamp 1283866974
 oauth_token 17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
 oauth_version   1.0
 source  sndtweet
 status  Test from OAuth
 oauth_signature ??

 Never add things to your base string if you don't send them, and make
 sure to add everything you send. :-)

 Tom

 On 9/7/10 3:54 PM, Garry wrote:

 Hi all,
 I have used the xAuth system to get myself this HTTP response:

 HTTP/1.1 200 OK
 (Clipped lots of other headers)

 oauth_token=17396968-
 lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX
  
 XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp
  ires=0

 OK, I guess I need to use at least part of this to sign my POST
 requests for a status update, but I'm feeling pretty stupid at the
 moment, and I'm not sure what to use. I've got the POST body like
 this:

 POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
 %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
 %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
 lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
 %3Dsndtweet%26status%3DTest%2520from%2520OAuth

 And signing it with

 CONSUMERSECRETKEY++oauth_token_secret

 Is that even vaguely correct?

 The OAuth tester is awesome, but I'm not sure if I'm even signing the
 right stuff with the right thing at the moment...

 Thanks a lot in advance...

 Garry
 

-- 
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?hl=en


[twitter-dev] Re: More xAuth grief

2010-09-07 Thread Garry
Thanks Tom  Taylor, thanks for that, this is going to be
interesting...

Thanks again.

Garry

On Sep 7, 4:20 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 You also have the oauth_* parameters. You need to sort those too ;-) 'c'
 goes before 'o' so count=20 goes before the oauth_* parameters.

 Tom

 On 9/7/10 5:15 PM, Garry wrote:



  Hello again Tom,
  OK, I've got my POST status update working, but now I want to GET
  direct messages. Here is my GET base string:

  GEThttp%3A%2F%2Ftwitter.com%2Fdirect_messages.xmloauth_consumer_key
  %3Dwd0fPjdiRT6G9m9O7OYRg%26oauth_nonce
  %3D8c8faf86e772390fb526%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283872376%26oauth_token%3D17396968-
  lorGbfmR4dJpPi98H7kmynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26count
  %3D20

  The sig checker reports:

  Bad sorting!

  All Base String parameters (query and POST parameters) must be sorted
  alphabetically.

  But I'm only providing one parameter at the moment, count, so is
  that correct?

  Thanks a lot

  Garry

  On Sep 7, 3:16 pm, Tom van der Woerdt i...@tvdw.eu wrote:
  You sign using consumersecretusersecret -- the 2 secrets.

  Tom

  On 9/7/10 4:13 PM, Garry wrote:

  Thanks Tom, OK, I've removed the source parameter, still no luck... My
  new POST:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0fPjX9m9O7OYRg%26oauth_nonce
  %3Ddf4d3f58753ebc507840%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283868421%26oauth_token%3D17396968-
  lorGbfmR4dJpPi98Xjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26status
  %3DTest%2520from%2520OAuth

  I think maybe the problem is my signing, what should I be signing this
  with? I'm not sure if I should be using the tokensecret from my first
  xAuth call, or is it something else?

  Thanks

  Garry

  On Sep 7, 3:03 pm, Tom van der Woerdt i...@tvdw.eu wrote:
  I spotted a source in your Base String. You don't need to send that 
  one.

  As long as you send these properly, it will work :
  oauth_consumer_key      wd0XX6G9m9O7OYRg
  oauth_nonce     e68644aad6fd745d5022
  oauth_signature_method  HMAC-SHA1
  oauth_timestamp 1283866974
  oauth_token     17396968-lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem
  oauth_version   1.0
  source  sndtweet
  status  Test from OAuth
  oauth_signature ??

  Never add things to your base string if you don't send them, and make
  sure to add everything you send. :-)

  Tom

  On 9/7/10 3:54 PM, Garry wrote:

  Hi all,
  I have used the xAuth system to get myself this HTTP response:

  HTTP/1.1 200 OK
  (Clipped lots of other headers)

  oauth_token=17396968-
  lorGbfmR4dJpPi98HXX4wEaFUoWRAsQJ1hemoauth_token_secret=BQ6nHHB0jMNnYNX
   
  XK2RQh5JgMV20aL9a7Euser_id=17396968screen_name=garrytaylorx_auth_exp
   ires=0

  OK, I guess I need to use at least part of this to sign my POST
  requests for a status update, but I'm feeling pretty stupid at the
  moment, and I'm not sure what to use. I've got the POST body like
  this:

  POSThttp%3A%2F%2Ftwitter.com%2Fstatuses
  %2Fupdate.xmloauth_consumer_key%3Dwd0XX6G9m9O7OYRg%26oauth_nonce
  %3De68644aad6fd745d5022%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1283866974%26oauth_token%3D17396968-
  lorGbfmR4dJpPXynjp4wEaFUoWRAsQJ1hem%26oauth_version%3D1.0%26source
  %3Dsndtweet%26status%3DTest%2520from%2520OAuth

  And signing it with

  CONSUMERSECRETKEY++oauth_token_secret

  Is that even vaguely correct?

  The OAuth tester is awesome, but I'm not sure if I'm even signing the
  right stuff with the right thing at the moment...

  Thanks a lot in advance...

  Garry

-- 
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?hl=en


Re: [twitter-dev] Re: More than five weeks of waiting for wihitelisting?

2010-09-07 Thread Taylor Singletary
You're welcome to follow up with me off-list, if you like. Typically
for research or University-related projects, we're not providing
whitelisting, as the basic OAuth-based limits, in conjunction with the
limits provided on the Search API and the Streaming API, allows for
enough sampling data for analysis. It may take more time to complete
all of your operations within limits.

The best requests for whitelisting contain as much information as
possible on these salient points:

 -- When requesting additional REST whitelisting, discuss the exact
methods you are calling and at what frequency.
 -- The specifics on how tweets are used in the product/project
 -- Specifics on the user base that will be consuming/using the
project/product/or data
 -- How the current limits you are subject to restrict the further
development/maturation of your product/project
 -- The specific kinds of data you're looking to derive from results.

Have you given any consideration to using the Streaming API for your research?

Thanks,
Taylor


On Tue, Sep 7, 2010 at 8:11 AM, David Toussaint
david.toussa...@azionare.de wrote:
 Hi Taylor,

 Thanks for your reply! Is there any additional information we can
 provide to help you with our request?

 Regards,
 David


-- 
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?hl=en


Re: [twitter-dev] Problems with parameter since_id

2010-09-07 Thread Taylor Singletary
Can you share an example of your signature base string in the case of
using since_id? Are you actually using since_id=12345?

Taylor

On Tue, Sep 7, 2010 at 4:22 AM, Alexandre alexandrepires2...@gmail.com wrote:
 Hi Guys,

 Well, I'm trying to use home_timeline with parameter since_id, but is
 not working

 if I use max_id, works well, but if I use since_id not work

 http://api.twitter.com/1/statuses/home_timeline.xml?max_id=54321 (this
 works)

 http://api.twitter.com/1/statuses/home_timeline.xml?since_id=12345
 (this dont work)

 the error returned is:

 (401) errorIncorrect signature/error

 I'm doing OAuth authentication correctly

 why only with since_id not working, but with max_id work ?

-- 
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?hl=en


[twitter-dev] Re: 400 response from twitterauth statuses/update call

2010-09-07 Thread JC O'Donnell
Thanks for your response, Abraham!

Twitter is returning a code of 400 with a description of...

Bad Request

Your browser sent a request that this server could not understand.

I'm making a account/rate_limit_status call in the page too and always
get near 350 remaining hits, so I assumed I wasn't running into rate
limiting. Here's the response data from that call...

{reset_time_in_seconds:1283878819,reset_time:Tue Sep 07 17:00:19
+ 2010,remaining_hits:350,hourly_limit:350}

I've also set the app for read/write in the Twitter console (I've
reset it a couple times as well to make sure).

JC

On Sep 4, 4:08 pm, Abraham Williams 4bra...@gmail.com wrote:
 What error code is Twitter returning?

 You could be running into a rate limit. You should also check that the
 application is read/write and check on your twitter accounts connections
 page that it has been granted read/write permissions.

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.



 On Wed, Sep 1, 2010 at 13:02, JC O'Donnell j...@springshare.com wrote:
  Hello,

  I've been transitioning our basic authentication calls over to OAuth.
  I'm using the twitterauth PHP library. All of the authentication calls
  are working and I receive proper responses from GET requests (ex:
  account/verify_credentials, account/rate_limit_status), but when I
  attempt a status update POST I get a 400 Bad Request response. From
  the account/rate_limit_status call I know I'm below the rate limit.

  Here's a PHP snippet...

  $content = $connection-post('statuses/update', array(status =
  Status update));

  Has anybody else been experiencing this behavior?

  Thanks,

  JC

  --
  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?hl=en

-- 
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?hl=en


[twitter-dev] Re: Missing oauth_verifier

2010-09-07 Thread G
For those having issues with the oauth-php library I would suggest
moving to the twitteroauth library found here. 
http://github.com/abraham/twitteroauth
It is far simpler and built specifically around the twitter oauth
framework. The oauth-php library I'm sure can do the job, but not
without many hours of work digging through a massive library.



On Sep 6, 5:49 pm, G glenn.wa...@gmail.com wrote:
 Your questions helped me find the issue. I'm using oauth-php and
 apparently what I'm doing isn't properly setting the callback URL.
 I'll look for the oauth_callback_confirmed flag for my error checking.

 Thanks for the help!

 On Sep 6, 4:11 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:



  Can you share as much information about your request token step as
  possible? This is the only step you should ever provide a callback URL
  in.

  Can you verify that you are usinghttp://api.twitter.com/oauth/*for
  all paths in this sequence.
  What is the value of oauth_callback on your request token step? Is
  this the only step that you are you providing this data? Are you
  presenting this via a query string parameter, an authorization header,
  a POST body, or any intermingling of the three?

  When you receive your response to request_token, do you get a
  parameter that indicates oauth_callback_confirmed=true?

  Thanks,
  Taylor

  On Mon, Sep 6, 2010 at 2:49 PM, G glenn.wa...@gmail.com wrote:
   I will admit I'm not experienced with oauth at all and maybe I'm
   sending bad data in the initial step. I fail to see why I would get an
   appropriate request_token if that were the case though.

   On Sep 6, 3:42 pm, Tom van der Woerdt i...@tvdw.eu wrote:
   Strange, you aren't the first one who reported this. I really think that
   this behavior should be investigated.

   Tom

   On 9/6/10 11:23 PM, G wrote:

I'm not receiving an oauth_verifier key/value pair in after the user
grants access through my app.

I'm receiving the at the URL specified in my app settings and in my
initial token request. The callback I'm getting looks like this

   http://callback_url?oauth_token=xHddBl5uYQnSIESC4P16bmWS3ObDgMroXglEQ...

Every issue I have seen regarding this has to do with not supplying
callback url's. I have included them in every step. I have even tried
to use it when asking for user authorization which the tutorial here:
   http://dev.twitter.com/pages/authsaysIdon't need. I'm really at a
loss.

I have tried to use the PIN method as well, but again the above
tutorial falls short at the critical step of what to do when the PIN
is aquired.

   --
   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?hl=en

-- 
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?hl=en


Re: [twitter-dev] Twitter - XAuth

2010-09-07 Thread Taylor Singletary
Hi Georgooty,

Present an example the status update you are trying to send with the
UTF-8 characters, and I'll show you how it should be encoded.

There's also a reference you can take a look at that iterates nearly
every single possible UTF-8 character and how they should be encoded
for a status update to Twitter at
http://github.com/episod/oauth-utf8-character-map

Taylor

On Tue, Sep 7, 2010 at 2:17 AM, Georgooty varghese georgo...@gmail.com wrote:
 Hi,
 Thanks for your reply. How to handle 500 error.  I have post a tweet into
 twitter in  english  using my twitter client.But I couldn't be able to post
 a tweet in malayalam/arabi. Could u please explain me, how to encode url for
 that.
 Regards,
 George

 On Tue, Sep 7, 2010 at 2:31 PM, Tom van der Woerdt i...@tvdw.eu wrote:

 On 9/7/10 9:11 AM, Georgooty varghese wrote:
  Dear Twitter,
 
  I have used XAuth authentication used for my application. I have
  implemented twitter client in C# on 1 month ago , Now these days I got
  gateway error first time logging.
 Just write some code to handle 500 errors - they happen a lot. It's
 usually not a client issue.

  Next time logging no pblm. I have no
  changed in code side. If any updation in XAuth authentication mechanism.
  In my application i couldn't post a tweet in malayalam/arabi language.
  How to solve this issue.
 Sounds like you aren't URL encoding the values properly.

  Any body please help me.
 
  Regards,
  George
 
 
  --
  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?hl=en

 --
 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?hl=en

 --
 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Could not authenticate you error on call to lists.xml

2010-09-07 Thread Taylor Singletary
First, I'd make sure that you're using the right path for API operations.

http://api.twitter.com/1/twitterapidocs/lists.xml is the proper end
point, and you should be using these patterns for ALL REST API
operations.

If you're still getting an OAuth error with the proper end point,
could you share the specific OAuth signature base string used in your
request?

Thanks,
Taylor

On Mon, Sep 6, 2010 at 10:20 PM, Dharmesh dharme...@gmail.com wrote:
 I'm trying to retrieve a list of users by accessing a URL like this;

 http://twitter.com/twitterapidocs/lists.xml

 This returns the Could not authenticate you error in all cases.

 I have OAuth working -- and can successfully invoke other API
 functions with no problem at all (with exactly the same OAuth
 credentials).

 Any idea why calls to lists.xml would fail when other methods work?

 All help is appreciated.

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] users/lookup POST read-only applications cannot post

2010-09-07 Thread Brian Maso
I just started getting this error message within the past hour for my
application. My application is read-only in the sense that it never
updates a user profile or posts any tweets or anything. My application
does, however, use the users/lookup.json API, and I use POST because I
am requesting many profiles at once when I use the API.

Does the Read-only indication on my application's profile mean I can
never use POST? Anyone else seeing anything similar?

Brian Maso

-- 
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?hl=en


Re: [twitter-dev] users/lookup POST read-only applications cannot post

2010-09-07 Thread Taylor Singletary
Yes, we have a global catch-all rule that all POST operations are
write operations.

User/lookup is typically a GET operation anyway (
http://dev.twitter.com/doc/get/users/lookup ) and you can pass the
up-to 100 ids as a long query string parameter, provided your HTTP
implementation allows for the length you're aiming for. For best
results with the lookup API, I recommend keeping the limit a bit below
100 for best operations.

Taylor

On Tue, Sep 7, 2010 at 10:43 AM, Brian Maso br...@blumenfeld-maso.com wrote:
 I just started getting this error message within the past hour for my
 application. My application is read-only in the sense that it never
 updates a user profile or posts any tweets or anything. My application
 does, however, use the users/lookup.json API, and I use POST because I
 am requesting many profiles at once when I use the API.

 Does the Read-only indication on my application's profile mean I can
 never use POST? Anyone else seeing anything similar?

 Brian Maso

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] Re: Dynamic URLs with oauth return url

2010-09-07 Thread Mark Krieger
Jeff,

All of my 'sites' are under control of one domain, so I just set a
cookie before auth
on any of the sites (with it's url), and then I redirect to the
correct subdomain from my main site
once my main site gets back control (I also do some housekeeping).

I said 'I just set...' but this was fairly complex to get right and to
deal with all situations.

If you are going to many other sites, not under your control, I am not
sure if the cookie
method would work,

I hope someone else has some ideas :)

Mark

On Sep 7, 1:37 am, Jeff Gladnick jeff.gladn...@gmail.com wrote:
 I work forhttp://www.greatdentalwebsites.comand am trying to
 configure the twitter integration to work with the new oauth system.

 The problem is that our users, when granting access, need to be
 redirected back to their own website.  The process works like this

 1) Dentist is onhttp://theirdentalwebsite.comand they click the link
 to let my dental website talk to twitter
 2) They are forwarded to the twitter page, and they click yes
 3) They are directed back to our website,http://www.greatdentalwebsites.com
 to a special return url

 The problem is when they get to #3, I don't know how to determine
 which customer's website to send them back to after that.  All I have
 in the url is their auth token thingy.

 I can think of two ways to solve this:

 1) Pass along an additional url back from twitter somehow so when they
 hit our return url, we have their domain name as a url parameter
 2) Pass the user back to their site in the first place, and handle the
 return from twitter logic there.

 Has anyone else had to deal with similar problems and how was it
 solved?

-- 
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?hl=en


Re: [twitter-dev] understanding data returned in arrays.

2010-09-07 Thread Abraham Williams
Answers inline.

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Tue, Sep 7, 2010 at 07:13, Bob Aiello robertjaie...@gmail.com wrote:

 Hi everyone,

 I am struggling a bit to find the right API reference that explains
 how to work with the data that is returned from an expression like
 $content = $connection-get('friends/ids', array('screen_name' =
 'bobaiello'));

 where get is shown below (as in Abraham William's excellent examples).

 I am struggling with understanding:
 1. how to parse the array returned in $connection


foreach ($content as $id) {
  // this will iterate over all ids and each $id will be an int.
  var_dump($id)'
}


 2. how to implement a curser to get the next batch of responses
 (twitter seems to give me the first thousand only)


By default friends/ids returns all friends. If you wish to use cursors to
chunk ids into blocks of 5000 you will initially call:

$content = $connection-get('friends/ids', array('screen_name'
= 'bobaiello', 'cursor' = -1));

Then to get the next block:

$next_content = $connection-get('friends/ids', array('screen_name'
= 'bobaiello', 'cursor' = $content['next_cursor']));

If you are on 32bit machine you will probably have to use next_cursor_str
instead.



 3. is the array one dimensional or a more complex structure (print_r
 leads me to believe the latter)


It is a simple array(1, 2, 3, 4) unless using cursors array('ids' =
array(1, 2, 3, 4,), 'next_cursor' = 123456,...)

 any help or pointing me in the right direction would be greatly
 appreciated.


 Bob
 http://www.linkedin.com/in/BobAiello
 twitter: bobaiello, cmbestpractices, yellowspiderinc

  /**
   * GET wrapper for oAuthRequest.
   */
  function get($url, $parameters = array()) {
$response = $this-oAuthRequest($url, 'GET', $parameters);
echo mytest =.$response;
if ($this-format === 'json'  $this-decode_json) {
  return json_decode($response);
}
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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Re: Missing oauth_verifier

2010-09-07 Thread Abraham Williams
If anyone has questions about the TwitterOAuth library feel free to contact
me.

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Tue, Sep 7, 2010 at 09:39, G glenn.wa...@gmail.com wrote:

 For those having issues with the oauth-php library I would suggest
 moving to the twitteroauth library found here.
 http://github.com/abraham/twitteroauth
 It is far simpler and built specifically around the twitter oauth
 framework. The oauth-php library I'm sure can do the job, but not
 without many hours of work digging through a massive library.



 On Sep 6, 5:49 pm, G glenn.wa...@gmail.com wrote:
  Your questions helped me find the issue. I'm using oauth-php and
  apparently what I'm doing isn't properly setting the callback URL.
  I'll look for the oauth_callback_confirmed flag for my error checking.
 
  Thanks for the help!
 
  On Sep 6, 4:11 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
 
 
 
   Can you share as much information about your request token step as
   possible? This is the only step you should ever provide a callback URL
   in.
 
   Can you verify that you are usinghttp://api.twitter.com/oauth/*for
   all paths in this sequence.
   What is the value of oauth_callback on your request token step? Is
   this the only step that you are you providing this data? Are you
   presenting this via a query string parameter, an authorization header,
   a POST body, or any intermingling of the three?
 
   When you receive your response to request_token, do you get a
   parameter that indicates oauth_callback_confirmed=true?
 
   Thanks,
   Taylor
 
   On Mon, Sep 6, 2010 at 2:49 PM, G glenn.wa...@gmail.com wrote:
I will admit I'm not experienced with oauth at all and maybe I'm
sending bad data in the initial step. I fail to see why I would get
 an
appropriate request_token if that were the case though.
 
On Sep 6, 3:42 pm, Tom van der Woerdt i...@tvdw.eu wrote:
Strange, you aren't the first one who reported this. I really think
 that
this behavior should be investigated.
 
Tom
 
On 9/6/10 11:23 PM, G wrote:
 
 I'm not receiving an oauth_verifier key/value pair in after the
 user
 grants access through my app.
 
 I'm receiving the at the URL specified in my app settings and in
 my
 initial token request. The callback I'm getting looks like this
 

 http://callback_url?oauth_token=xHddBl5uYQnSIESC4P16bmWS3ObDgMroXglEQ...
 
 Every issue I have seen regarding this has to do with not
 supplying
 callback url's. I have included them in every step. I have even
 tried
 to use it when asking for user authorization which the tutorial
 here:
http://dev.twitter.com/pages/authsaysIdon't need. I'm really at a
 loss.
 
 I have tried to use the PIN method as well, but again the above
 tutorial falls short at the critical step of what to do when the
 PIN
 is aquired.
 
--
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?hl=en

 --
 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Re: 400 response from twitterauth statuses/update call

2010-09-07 Thread Abraham Williams
Are you behind a proxy of some sort?

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Tue, Sep 7, 2010 at 09:09, JC O'Donnell j...@springshare.com wrote:

 Thanks for your response, Abraham!

 Twitter is returning a code of 400 with a description of...

 Bad Request

 Your browser sent a request that this server could not understand.

 I'm making a account/rate_limit_status call in the page too and always
 get near 350 remaining hits, so I assumed I wasn't running into rate
 limiting. Here's the response data from that call...

 {reset_time_in_seconds:1283878819,reset_time:Tue Sep 07 17:00:19
 + 2010,remaining_hits:350,hourly_limit:350}

 I've also set the app for read/write in the Twitter console (I've
 reset it a couple times as well to make sure).

 JC

 On Sep 4, 4:08 pm, Abraham Williams 4bra...@gmail.com wrote:
  What error code is Twitter returning?
 
  You could be running into a rate limit. You should also check that the
  application is read/write and check on your twitter accounts connections
  page that it has been granted read/write permissions.
 
  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
 
 
  On Wed, Sep 1, 2010 at 13:02, JC O'Donnell j...@springshare.com wrote:
   Hello,
 
   I've been transitioning our basic authentication calls over to OAuth.
   I'm using the twitterauth PHP library. All of the authentication calls
   are working and I receive proper responses from GET requests (ex:
   account/verify_credentials, account/rate_limit_status), but when I
   attempt a status update POST I get a 400 Bad Request response. From
   the account/rate_limit_status call I know I'm below the rate limit.
 
   Here's a PHP snippet...
 
   $content = $connection-post('statuses/update', array(status =
   Status update));
 
   Has anybody else been experiencing this behavior?
 
   Thanks,
 
   JC
 
   --
   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?hl=en

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] Re: 400 response from twitterauth statuses/update call

2010-09-07 Thread JC O'Donnell
Hi Abraham,

The server making the requests is not behind a proxy.

I've also tried the users/lookup call, with both a POST and a GET
(since the docs say both are supported). The POST returns the same
response as I mentioned before, while the GET successfully returns
user data.

JC

On Sep 7, 11:25 am, Abraham Williams 4bra...@gmail.com wrote:
 Are you behind a proxy of some sort?

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.



 On Tue, Sep 7, 2010 at 09:09, JC O'Donnell j...@springshare.com wrote:
  Thanks for your response, Abraham!

  Twitter is returning a code of 400 with a description of...

  Bad Request

  Your browser sent a request that this server could not understand.

  I'm making a account/rate_limit_status call in the page too and always
  get near 350 remaining hits, so I assumed I wasn't running into rate
  limiting. Here's the response data from that call...

  {reset_time_in_seconds:1283878819,reset_time:Tue Sep 07 17:00:19
  + 2010,remaining_hits:350,hourly_limit:350}

  I've also set the app for read/write in the Twitter console (I've
  reset it a couple times as well to make sure).

  JC

  On Sep 4, 4:08 pm, Abraham Williams 4bra...@gmail.com wrote:
   What error code is Twitter returning?

   You could be running into a rate limit. You should also check that the
   application is read/write and check on your twitter accounts connections
   page that it has been granted read/write permissions.

   Abraham
   -
   Abraham Williams | Hacker Advocate |http://abrah.am
   @abraham |http://projects.abrah.am|http://blog.abrah.am
   This email is: [ ] shareable [x] ask first [ ] private.

   On Wed, Sep 1, 2010 at 13:02, JC O'Donnell j...@springshare.com wrote:
Hello,

I've been transitioning our basic authentication calls over to OAuth.
I'm using the twitterauth PHP library. All of the authentication calls
are working and I receive proper responses from GET requests (ex:
account/verify_credentials, account/rate_limit_status), but when I
attempt a status update POST I get a 400 Bad Request response. From
the account/rate_limit_status call I know I'm below the rate limit.

Here's a PHP snippet...

$content = $connection-post('statuses/update', array(status =
Status update));

Has anybody else been experiencing this behavior?

Thanks,

JC

--
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?hl=en

  --
  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?hl=en

-- 
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?hl=en


Re: [twitter-dev] User Streams or Site Streams?

2010-09-07 Thread Rainux Luo
Hey John, thanks for your detailed explanation. Another problem I'm
worry about is, although I'll run the app on my VPS and open it for
any users interested in it, I'm just a stand alone developer and don't
have a company, is my Site Streams request acceptable? Thanks.

On Tue, Sep 7, 2010 at 9:40 PM, John Kalucki j...@twitter.com wrote:
 This app cannot use User Streams and must only use Site Streams. User
 Streams is for desktop applications now, and soon will be available for all
 single-user-per-host applications.
 Site Streams are for all large scale integrations -- many streams to a
 single host, as Site Streams bundles multiple User Streams onto a single
 connection. To use User Streams would consume an awful lot of resources on
 both ends.
 Site Steams does and will support Home Timelines -- but we're not ready to
 beta this feature just yet due to a performance issue that we're working
 through.

 -John Kalucki
 http://twitter.com/jkalucki
 Twitter Inc.

 On Mon, Sep 6, 2010 at 11:36 PM, Rainux rai...@gmail.com wrote:

 Hello, I'm writing a Twitter client that acts as a XMPP bot. Users can
 add the bot as buddy then bind their Twitter account, after that the
 bot will use Streaming API to push home/mentions/dm and other user
 interested stuffs to them. I found User Streams is suitable for this
 since Site Streams not support home timeline.

 Does my app conflict with Twitter's rules about User Streams?

 --
 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?hl=en

 --
 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?hl=en




-- 
Best Regards

Rainux

-- 
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?hl=en


Re: [twitter-dev] Re: Dynamic URLs with oauth return url

2010-09-07 Thread Taylor Singletary
When you provide an oauth_callback on the oauth/request_token step, as
long as you properly encode it, can contain any additional URL
parameters you might want to send back to your server, including
identifying information about the user and context/state that you may
need to carry over.

Taylor

On Tue, Sep 7, 2010 at 10:51 AM, Mark Krieger markskrie...@gmail.com wrote:
 Jeff,

 All of my 'sites' are under control of one domain, so I just set a
 cookie before auth
 on any of the sites (with it's url), and then I redirect to the
 correct subdomain from my main site
 once my main site gets back control (I also do some housekeeping).

 I said 'I just set...' but this was fairly complex to get right and to
 deal with all situations.

 If you are going to many other sites, not under your control, I am not
 sure if the cookie
 method would work,

 I hope someone else has some ideas :)

 Mark

 On Sep 7, 1:37 am, Jeff Gladnick jeff.gladn...@gmail.com wrote:
 I work forhttp://www.greatdentalwebsites.comand am trying to
 configure the twitter integration to work with the new oauth system.

 The problem is that our users, when granting access, need to be
 redirected back to their own website.  The process works like this

 1) Dentist is onhttp://theirdentalwebsite.comand they click the link
 to let my dental website talk to twitter
 2) They are forwarded to the twitter page, and they click yes
 3) They are directed back to our website,http://www.greatdentalwebsites.com
 to a special return url

 The problem is when they get to #3, I don't know how to determine
 which customer's website to send them back to after that.  All I have
 in the url is their auth token thingy.

 I can think of two ways to solve this:

 1) Pass along an additional url back from twitter somehow so when they
 hit our return url, we have their domain name as a url parameter
 2) Pass the user back to their site in the first place, and handle the
 return from twitter logic there.

 Has anyone else had to deal with similar problems and how was it
 solved?

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] oauth_callback and oob error

2010-09-07 Thread Babak
HI all,

I'm new at OAuth and every time I try to request for a token from
https://api.twitter.com/oauth/request_token

it returns me this error :
/oauth/request_token  Desktop applications only support the
oauth_callback value 'oob'

I'm not developing a Desktop app  its a Web application (JS app).

I used this library in my application:
http://oauth.googlecode.com/svn/code/javascript/

And the weird thing is that when I remove oauth_callback from post
parameters it returns the true value for oauth_callback_confirmed
like this :
oauth_token=oauth_token_secret=oauth_callback_confirmed=true

Any idea what am I doing wrong ?

-- 
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?hl=en


Re: [twitter-dev] oauth_callback and oob error

2010-09-07 Thread Tom van der Woerdt
Is your application marked as a web app on http://dev.twitter.com/apps ?

Tom


On 9/7/10 10:08 PM, Babak wrote:
 HI all,
 
 I'm new at OAuth and every time I try to request for a token from
 https://api.twitter.com/oauth/request_token
 
 it returns me this error :
 /oauth/request_token  Desktop applications only support the
 oauth_callback value 'oob'
 
 I'm not developing a Desktop app  its a Web application (JS app).
 
 I used this library in my application:
 http://oauth.googlecode.com/svn/code/javascript/
 
 And the weird thing is that when I remove oauth_callback from post
 parameters it returns the true value for oauth_callback_confirmed
 like this :
 oauth_token=oauth_token_secret=oauth_callback_confirmed=true
 
 Any idea what am I doing wrong ?
 

-- 
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?hl=en


[twitter-dev] Re: Dynamic URLs with oauth return url

2010-09-07 Thread Jeff Gladnick
I've been unable to do that besides url encoding everything.

I was able to get the cookie (and session var) to work though.

On Sep 7, 1:12 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 When you provide an oauth_callback on the oauth/request_token step, as
 long as you properly encode it, can contain any additional URL
 parameters you might want to send back to your server, including
 identifying information about the user and context/state that you may
 need to carry over.

 Taylor

 On Tue, Sep 7, 2010 at 10:51 AM, Mark Krieger markskrie...@gmail.com wrote:
  Jeff,

  All of my 'sites' are under control of one domain, so I just set a
  cookie before auth
  on any of the sites (with it's url), and then I redirect to the
  correct subdomain from my main site
  once my main site gets back control (I also do some housekeeping).

  I said 'I just set...' but this was fairly complex to get right and to
  deal with all situations.

  If you are going to many other sites, not under your control, I am not
  sure if the cookie
  method would work,

  I hope someone else has some ideas :)

  Mark

  On Sep 7, 1:37 am, Jeff Gladnick jeff.gladn...@gmail.com wrote:
  I work forhttp://www.greatdentalwebsites.comandam trying to
  configure the twitter integration to work with the new oauth system.

  The problem is that our users, when granting access, need to be
  redirected back to their own website.  The process works like this

  1) Dentist is onhttp://theirdentalwebsite.comandthey click the link
  to let my dental website talk to twitter
  2) They are forwarded to the twitter page, and they click yes
  3) They are directed back to our website,http://www.greatdentalwebsites.com
  to a special return url

  The problem is when they get to #3, I don't know how to determine
  which customer's website to send them back to after that.  All I have
  in the url is their auth token thingy.

  I can think of two ways to solve this:

  1) Pass along an additional url back from twitter somehow so when they
  hit our return url, we have their domain name as a url parameter
  2) Pass the user back to their site in the first place, and handle the
  return from twitter logic there.

  Has anyone else had to deal with similar problems and how was it
  solved?

  --
  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?hl=en

-- 
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?hl=en


[twitter-dev] Facebook twitter App no longer works

2010-09-07 Thread Uru
I recently made changes to my Facebook Twitter application to use
OAuth. I now notice that my tweets no longer show up. I am able to
pull the number of friends, and followers I have, even my profile
picture but not my tweets.

Any help would be greatly appreciated.

-- 
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?hl=en


[twitter-dev] Re: Twitter logout - hate to open this can of worms again

2010-09-07 Thread Matei
Thank for the replies everyone. It's unfortunate there's no good
solution to this. Since we only do this the first time a user
authorizes the widget as some of you have mentioned, it mitigates the
issue somewhat. We'll probably try to notify the user to log out from
the twitter site manually.

Cheers,
Matei

-- 
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?hl=en


Re: [twitter-dev] Facebook twitter App no longer works

2010-09-07 Thread Tom van der Woerdt
Do you get an error?

Tom


On 8 sep. 2010, at 00:02, Uru urumultime...@gmail.com wrote:

 I recently made changes to my Facebook Twitter application to use
 OAuth. I now notice that my tweets no longer show up. I am able to
 pull the number of friends, and followers I have, even my profile
 picture but not my tweets.
 
 Any help would be greatly appreciated.
 
 -- 
 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?hl=en

-- 
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?hl=en


[twitter-dev] Re: oauth_callback and oob error

2010-09-07 Thread Babak
Thanks Tom.

well, I choose the Browser as Application Type.

But I left the callback url field blank and it saved my settings
nicely ! and then when i checked it back the application type was
changed to client !!
and this time i wrote something in callback url field and seems it
really saved my settings.

so is it a bug in app settings page validation ?


On Sep 8, 12:29 am, Tom van der Woerdt i...@tvdw.eu wrote:
 Is your application marked as a web app onhttp://dev.twitter.com/apps?

 Tom

 On 9/7/10 10:08 PM, Babak wrote:

  HI all,

  I'm new at OAuth and every time I try to request for a token from
 https://api.twitter.com/oauth/request_token

  it returns me this error :
  /oauth/request_token  Desktop applications only support the
  oauth_callback value 'oob'

  I'm not developing a Desktop app  its a Web application (JS app).

  I used this library in my application:
 http://oauth.googlecode.com/svn/code/javascript/

  And the weird thing is that when I remove oauth_callback from post
  parameters it returns the true value for oauth_callback_confirmed
  like this :
  oauth_token=oauth_token_secret=oauth_callback_confirmed=true

  Any idea what am I doing wrong ?

-- 
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?hl=en


Re: [twitter-dev] Error: User is over daily status update limit.

2010-09-07 Thread Jay Taylor
account name: jetlib

today it seems to be working..but it's still very strange that it would
claim I exceeded the threshold when I didn't post anything.

On Tue, Sep 7, 2010 at 7:40 AM, Taylor Singletary 
taylorsinglet...@twitter.com wrote:

 What's the name of the account having this problem?

 Taylor

 On Mon, Sep 6, 2010 at 6:19 PM, outatime outtat...@gmail.com wrote:
  When trying to post using the new OAuth system, I am getting a User
  is over daily status update limit. error, but the account in question
  has not posted anything since August 31st.  What gives?
 
  --
  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?hl=en
 

 --
 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Error: User is over daily status update limit.

2010-09-07 Thread Jay Taylor
With that being said, there may have been a lot of failed attempts to post
stuff, b/c the client was using the now deprecated/disalbed
basic-authentication.

On Tue, Sep 7, 2010 at 4:34 PM, Jay Taylor outtat...@gmail.com wrote:

 account name: jetlib

 today it seems to be working..but it's still very strange that it would
 claim I exceeded the threshold when I didn't post anything.


 On Tue, Sep 7, 2010 at 7:40 AM, Taylor Singletary 
 taylorsinglet...@twitter.com wrote:

 What's the name of the account having this problem?

 Taylor

 On Mon, Sep 6, 2010 at 6:19 PM, outatime outtat...@gmail.com wrote:
  When trying to post using the new OAuth system, I am getting a User
  is over daily status update limit. error, but the account in question
  has not posted anything since August 31st.  What gives?
 
  --
  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?hl=en
 

 --
 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?hl=en




-- 
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?hl=en


[twitter-dev] Re: ERROR The requested URL could not be retrieved

2010-09-07 Thread Rodrigo Berlinck
i need your help.

On 5 set, 07:53, Rodrigo Berlinck rodrigode...@gmail.com wrote:
 Post the code?

 On Sep 3, 8:53 pm, Rodrigo Berlinck rodrigode...@gmail.com wrote:



  I will explain again.
  I Seto no one user of Twitter, get all that follow this user and this
  result returns an array, then I do a foreach to do follow and then do
  the unfollow.

  I use this library CodeIgniter:http://www.haughin.com/code/twitter/.

  He does everything in curl.

  If you need I'll post the code here

  thanks

  On Sep 3, 6:24 pm, Matt Harris thematthar...@twitter.com wrote:

   I'm still not sure what you are doing or the URLs you are calling to
   the API. We also don't provide information about unfollows so i'm
   confused about that aspect of your code.

   On Fri, Sep 3, 2010 at 10:47 AM, Rodrigo Berlinck

   rodrigode...@gmail.com wrote:
Hi Matt,
I use Code Igniter (PHP Framework).

Looping:
Select the followers of the user and return array
follow matrix
matrix unfollow
insert into db (mysql)

but he makes filters, and has a limit own, for example it takes only
200 followers and then make 200 unfollowers.

On Sep 3, 2:15 pm, Matt Harris thematthar...@twitter.com wrote:
Hi Rodrigo,

When you say you are looping follow and unfollow can you give an
example of your code and the URL you are using. The pagination is not
linear for many of our methods and requires you to use the value of
the next cursor we return instead of a numerical sequence 1,2,3.

The error you are getting implies you are requesting a resource that
doesn't exist.
Best,
Matt

On Fri, Sep 3, 2010 at 7:14 AM, Rodrigo Berlinck 
rodrigode...@gmail.com wrote:
 While looping follow / unfollow, returning this error:

 ERROR
 The requested URL could not be retrieved

 whats that?

 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?hl=en

--

Matt Harris
Developer Advocate, Twitterhttp://twitter.com/themattharris

--
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?hl=en

   --

   Matt Harris
   Developer Advocate, Twitterhttp://twitter.com/themattharris

-- 
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?hl=en


Re: [twitter-dev] Re: oauth_callback and oob error

2010-09-07 Thread Matt Harris
This is a known quirk of how that page works. If you don't provide a
callback URL we default you back to a client application. To be able
to have a browser based application the callback URL must be
specified. When doing this remember you should still send a
oauth_callback during the request_token phase of the OAuth flow.

Hope that helps,
Matt

On Tue, Sep 7, 2010 at 4:16 PM, Babak babak.tara...@gmail.com wrote:
 Thanks Tom.

 well, I choose the Browser as Application Type.

 But I left the callback url field blank and it saved my settings
 nicely ! and then when i checked it back the application type was
 changed to client !!
 and this time i wrote something in callback url field and seems it
 really saved my settings.

 so is it a bug in app settings page validation ?


 On Sep 8, 12:29 am, Tom van der Woerdt i...@tvdw.eu wrote:
 Is your application marked as a web app onhttp://dev.twitter.com/apps?

 Tom

 On 9/7/10 10:08 PM, Babak wrote:

  HI all,

  I'm new at OAuth and every time I try to request for a token from
 https://api.twitter.com/oauth/request_token

  it returns me this error :
  /oauth/request_token  Desktop applications only support the
  oauth_callback value 'oob'

  I'm not developing a Desktop app  its a Web application (JS app).

  I used this library in my application:
 http://oauth.googlecode.com/svn/code/javascript/

  And the weird thing is that when I remove oauth_callback from post
  parameters it returns the true value for oauth_callback_confirmed
  like this :
  oauth_token=oauth_token_secret=oauth_callback_confirmed=true

  Any idea what am I doing wrong ?

 --
 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?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
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?hl=en


Re: [twitter-dev] Re: ERROR The requested URL could not be retrieved

2010-09-07 Thread Matt Harris
Hey Rodrigo,

So I can help you please provide the code you are using.
Matt

On Tue, Sep 7, 2010 at 5:30 PM, Rodrigo Berlinck rodrigode...@gmail.com wrote:
 i need your help.

 On 5 set, 07:53, Rodrigo Berlinck rodrigode...@gmail.com wrote:
 Post the code?

 On Sep 3, 8:53 pm, Rodrigo Berlinck rodrigode...@gmail.com wrote:



  I will explain again.
  I Seto no one user of Twitter, get all that follow this user and this
  result returns an array, then I do a foreach to do follow and then do
  the unfollow.

  I use this library CodeIgniter:http://www.haughin.com/code/twitter/.

  He does everything in curl.

  If you need I'll post the code here

  thanks

  On Sep 3, 6:24 pm, Matt Harris thematthar...@twitter.com wrote:

   I'm still not sure what you are doing or the URLs you are calling to
   the API. We also don't provide information about unfollows so i'm
   confused about that aspect of your code.

   On Fri, Sep 3, 2010 at 10:47 AM, Rodrigo Berlinck

   rodrigode...@gmail.com wrote:
Hi Matt,
I use Code Igniter (PHP Framework).

Looping:
Select the followers of the user and return array
follow matrix
matrix unfollow
insert into db (mysql)

but he makes filters, and has a limit own, for example it takes only
200 followers and then make 200 unfollowers.

On Sep 3, 2:15 pm, Matt Harris thematthar...@twitter.com wrote:
Hi Rodrigo,

When you say you are looping follow and unfollow can you give an
example of your code and the URL you are using. The pagination is not
linear for many of our methods and requires you to use the value of
the next cursor we return instead of a numerical sequence 1,2,3.

The error you are getting implies you are requesting a resource that
doesn't exist.
Best,
Matt

On Fri, Sep 3, 2010 at 7:14 AM, Rodrigo Berlinck 
rodrigode...@gmail.com wrote:
 While looping follow / unfollow, returning this error:

 ERROR
 The requested URL could not be retrieved

 whats that?

 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?hl=en

--

Matt Harris
Developer Advocate, Twitterhttp://twitter.com/themattharris

--
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?hl=en

   --

   Matt Harris
   Developer Advocate, Twitterhttp://twitter.com/themattharris

 --
 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?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
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?hl=en


[twitter-dev] OAuth limit exceeded and error message reads 'Basic authentication is not supported'?

2010-09-07 Thread Tim Haines
Hi guys,

I haven't fully confirmed this is what's going on, but it appears an account
I use for doing only user/show calls, and ONLY via oauth is getting some bad
error messages.

I think in this case the account has hit it's oauth rate limit, and a few
more user/show calls have been attempted.  The error message being returned
is a 401 and has a response body saying: Basic authentication is not
supported when it should perhaps read rate limit exceeded.

Cheers,

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?hl=en


[twitter-dev] Re: oauth_callback and oob error

2010-09-07 Thread Babak
Thanks for reply.
Kindly id like to discuss about this with some inline comments.

On Sep 8, 4:30 am, Matt Harris thematthar...@twitter.com wrote:
 This is a known quirk of how that page works.

 If you don't provide a callback URL we default you back to a client 
 application.
Without any notification ?!?!?

  To be able to have a browser based application the callback URL must be
 specified.
So your developers should implement this as a rule of validating that
form.

 When doing this remember you should still send a
 oauth_callback during the request_token phase of the OAuth flow.

 Hope that helps,
 Matt



 On Tue, Sep 7, 2010 at 4:16 PM, Babak babak.tara...@gmail.com wrote:
  Thanks Tom.

  well, I choose the Browser as Application Type.

  But I left the callback url field blank and it saved my settings
  nicely ! and then when i checked it back the application type was
  changed to client !!
  and this time i wrote something in callback url field and seems it
  really saved my settings.

  so is it a bug in app settings page validation ?

  On Sep 8, 12:29 am, Tom van der Woerdt i...@tvdw.eu wrote:
  Is your application marked as a web app onhttp://dev.twitter.com/apps?

  Tom

  On 9/7/10 10:08 PM, Babak wrote:

   HI all,

   I'm new at OAuth and every time I try to request for a token from
  https://api.twitter.com/oauth/request_token

   it returns me this error :
   /oauth/request_token  Desktop applications only support the
   oauth_callback value 'oob'

   I'm not developing a Desktop app  its a Web application (JS app).

   I used this library in my application:
  http://oauth.googlecode.com/svn/code/javascript/

   And the weird thing is that when I remove oauth_callback from post
   parameters it returns the true value for oauth_callback_confirmed
   like this :
   oauth_token=oauth_token_secret=oauth_callback_confirmed=true

   Any idea what am I doing wrong ?

  --
  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?hl=en

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

-- 
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?hl=en


Re: [twitter-dev] User Streams or Site Streams?

2010-09-07 Thread John Kalucki
As long as you meet the general Terms of Service and follow the Developers
rules you should be fine.


On Tue, Sep 7, 2010 at 12:51 PM, Rainux Luo rai...@gmail.com wrote:

 Hey John, thanks for your detailed explanation. Another problem I'm
 worry about is, although I'll run the app on my VPS and open it for
 any users interested in it, I'm just a stand alone developer and don't
 have a company, is my Site Streams request acceptable? Thanks.

 On Tue, Sep 7, 2010 at 9:40 PM, John Kalucki j...@twitter.com wrote:
  This app cannot use User Streams and must only use Site Streams. User
  Streams is for desktop applications now, and soon will be available for
 all
  single-user-per-host applications.
  Site Streams are for all large scale integrations -- many streams to a
  single host, as Site Streams bundles multiple User Streams onto a single
  connection. To use User Streams would consume an awful lot of resources
 on
  both ends.
  Site Steams does and will support Home Timelines -- but we're not ready
 to
  beta this feature just yet due to a performance issue that we're working
  through.
 
  -John Kalucki
  http://twitter.com/jkalucki
  Twitter Inc.
 
  On Mon, Sep 6, 2010 at 11:36 PM, Rainux rai...@gmail.com wrote:
 
  Hello, I'm writing a Twitter client that acts as a XMPP bot. Users can
  add the bot as buddy then bind their Twitter account, after that the
  bot will use Streaming API to push home/mentions/dm and other user
  interested stuffs to them. I found User Streams is suitable for this
  since Site Streams not support home timeline.
 
  Does my app conflict with Twitter's rules about User Streams?
 
  --
  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?hl=en
 
  --
  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?hl=en
 



 --
 Best Regards

 Rainux

 --
 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?hl=en


-- 
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?hl=en


Re: [twitter-dev] Error 500 when updating Twitter status using fsock and oauth.

2010-09-07 Thread A Lex
Thanks Tom, fixed the authorization header and it is working fine now,

On Mon, Sep 6, 2010 at 11:17 PM, Tom van der Woerdt i...@tvdw.eu wrote:

 The syntax of your Authorization: header is bad. Take a look in the
 documentation and compare them.

 Tom


 On 9/6/10 1:34 PM, A Lex wrote:
  Hi everyone,
 
  I am having some slight problem with Twitter Oauth and fsockopen
  The reason I am using fsock, is to cater people that do not have curl
  installed.
 
  So here goes my problem. I was able to use fsock to get the access
  token however when I use fsock to update twitter status. It returns me
  with an Internal Error 500.
 
  Here is what I post:
 
  POST https://api.twitter.com/1/statuses/update.json HTTP/1.1
  Host: api.twitter.com
  Authorization: OAuth
 
 oauth_consumer_key=qArHWfcnikadIzP2k6EVgoauth_nonce=bf07179df00bee93a9537ec12a1d7be6oauth_signature=Ugs
  %2FGAPrtFIrRqhGQ9KrkrEYPVI%3Doauth_signature_method=HMAC-
  SHA1oauth_timestamp=1283772251oauth_token=177905108-
 
 JwUzEOE1ekGUbQieMBtB4P4L11WrEej6izvHQbJAoauth_version=1.0status=Published
  %20a%20new%20blog%20entry%20title%3AA%20Look%20Back%20%28and%20Forward
  %29%20at%20the%20Latest%20Tech%20Gadgets%20under%20category
  %3ATechnology
  User-Agent: TwitterOAuth v0.2.0-beta2
  Content-type: application/x-www-form-urlencoded
  Connection: Close
 
  And this is what twitter replied me with:
 
  HTTP/1.1 500 Internal Server Error
  Date: Mon, 06 Sep 2010 11:24:06 GMT
  Server: hi
  Status: 500 Internal Server Error
  Content-Type: text/html; charset=utf-8
  Content-Length: 4659
  Cache-Control: no-cache, max-age=300
  Set-Cookie: k=110.159.136.116.1283772246202732; path=/;
  expires=Mon, 13-Sep-10 11:24:06 GMT; domain=.twitter.com
  Set-Cookie: guest_id=128377224620512308; path=/; expires=Wed, 06
  Oct 2010 11:24:06 GMT
  Set-Cookie:
 
 _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
  %250ASGFzaHsABjoKQHVzZWR7AA%253D
  %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
  path=/
  Expires: Mon, 06 Sep 2010 11:29:06 GMT
  Vary: Accept-Encoding
  Connection: close
 
  Your help will be greatly appreciated.
 

 --
 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?hl=en


-- 
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?hl=en


[twitter-dev] Twitter Send Message API

2010-09-07 Thread Rajesh
i used twiiter api for status update,get connection,send message,

status update and get connection working fine ,

but in send message getting

8/September/2010 10:15:33: {request:/1/direct_messages/
new.json,error:Invalid request.}

* TO SEND JOB DETAILS MESSAGE TO Twitter CONNECTIONS
 */
public function sendMessage($token, $sender_id=array(), $message)
{
global $logger;
$client = $token-getHttpClient($this-option_array);
$message = checkout this job jobsbyref;

$message_encode=urlencode($message);


$logger-debugLog(sender id is ---);
$logger-printArray($sender_id);
//$logger-debugLog(message.$message);
// Set Method (GET, POST or PUT)
$client-setMethod(Zend_Http_Client::POST);
for($i=0;$icount($sender_id);$i++)
{

$client-setUri('https://api.twitter.com/1/direct_messages/
new.json');
$client-setParameterPost('user_id',$sender_id[$i]);
$client-setParameterPost('message',$message);
$logger-debugLog(client value is-);
$logger-printArray($client);
$response =$client-request();
$logger-debugLog(inside send message--
wdwdeff---);
$logger-printArray($response-getBody());
}
}

-- 
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?hl=en


[twitter-dev] Re: J2ME OAUTH token for Twitter

2010-09-07 Thread Amid Lad
Thanks Tayalor

But I am developing a twitter app for mobile (j2me)

should i get request token everytime user want to login ?
should user enter pin code everytime ?
should i get access token everytime ?

isn't there is any other way rather than providing the pin user should
directly login...

Amit Lad


On Sep 7, 3:23 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 It's forbidden to automate the OAuth flow such that you attempt
 scarping the PIN code from the resultant page.

 If your application is capable of receiving URL-based callback, you'll
 want to preconfigure a default callback on dev.twitter.com (which
 indicates that your app is capable of receiving a callback) and
 provide an explicit callback on the request token step. When the user
 is sent to your callback, an oauth_verifier (PIN) will be included
 with the other relevant oauth_* parameters.

 If your application is incapable of receiving an URL-based callback,
 you need to present a UI for the user to hand-enter the PIN
 code/oauth_verifier, and then use that value to complete the flow
 after sending the user through the authorization steps.

 Taylor

 On Mon, Sep 6, 2010 at 12:14 AM, Amid Lad amid@gmail.com wrote:
  I've been transitioning our basic authentication calls over to OAuth.
  I'm using the j2me OAUTH library(for mobile). All of the
  authentication calls
  are working and I receive proper responses from GET requests.

  But the problem is with access token. What I have to do is to pass the
  url and get the
  pin number and need to pass the pin number to get the access.

  How can I avoid this process and directly get the pin response from
  server and use it get the
  twitter access?

  What is the url to get the pin response?

  Thanks in advance.

  --
  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?hl=en

-- 
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?hl=en