[twitter-dev] Re: Retweet API launched to 100% of users

2009-11-27 Thread hansamann
I am working with Twitter4J which should have support for the latest
retweet format in the current Snapshot. Somehow I cannot get the
retweetedStatus object, it returns null, so I am wondering if retweets
are also part of the streaming API which I am using. I am using the
filter stream and would like to detect retweeted messages in this
stream.

Based on the last information form Twitter this should be possible and
the retweetedStatus info should be part of the filter stream statuses.
Is this still correct?

Cheers
Sven

On Nov 19, 5:16 pm, Marcel Molina mar...@twitter.com wrote:
 Back in August we announced plans to release the Retweet feature along with
 an API to publish and consume retweets. Over the last few months we've been
 gradually opening up the feature to more users as we performance test and
 refine it. You can see some of the original announcement emails around
 retweets 
 here:http://groups.google.com/group/twitter-api-announce/browse_thread/thr...http://groups.google.com/group/twitter-api-announce/browse_thread/thr...http://groups.google.com/group/twitter-api-announce/browse_thread/thr...http://groups.google.com/group/twitter-api-announce/browse_thread/thr...

 Today we've launched the feature to 100% of users. You can now consume
 retweets via the /statuses/home_timeline resource, as well as all the
 specialized retweet timelines. For backwards compatibility reasons we're
 stripping retweets out of the friends_timeline resource as well as the
 user_timeline resource. If you plan on implementing support for consuming
 retweets from timelines, switch all instances of /statuses/friends_timeline
 to /statuses/home_timeline.

 All the relevant retweet documentation can be found 
 here:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retweethttp://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-home_t...http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retwee...http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retwee...http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retwee...http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retweets

 To those implementing this feature in your clients, I'd suggest taking some
 UI cues from what we've done on 
 Twitter.com:http://s3.amazonaws.com/twitter_production/differentiating-retweets.png

 Notice how the retweet by @ablegrape of @wblakegray's tweet is clearly
 differentiated from the surrounding tweets with a distinctive retweet icon
 and the Retweeted by label along the bottom. This is just one way of doing
 it. Use whatever interface you think makes sense. What's important is
 communicating to your users that the tweet they are seeing was shared with
 them by someone they follow so they don't get confused by seeing tweets in
 their timeline from people they aren't following.

 We're just getting started with the retweet feature but we're happy with
 this initial v1 we pushed out. We're really looking forward to seeing how
 everyone works with this new API.

 --
 Marcel Molina
 Twitter Platform Teamhttp://twitter.com/noradio


[twitter-dev] Re: Retweet API launched to 100% of users

2009-11-27 Thread Yusuke
Hi,

It can be Twitter4J side's problem.
I'll take a look at it later.

Cheers,
Yusuke

On 11月27日, 午後5:06, hansamann sven.hai...@googlemail.com wrote:
 I am working with Twitter4J which should have support for the latest
 retweet format in the current Snapshot. Somehow I cannot get the
 retweetedStatus object, it returns null, so I am wondering if retweets
 are also part of the streaming API which I am using. I am using the
 filter stream and would like to detect retweeted messages in this
 stream.

 Based on the last information form Twitter this should be possible and
 the retweetedStatus info should be part of the filter stream statuses.
 Is this still correct?

 Cheers
 Sven

 On Nov 19, 5:16 pm, Marcel Molina mar...@twitter.com wrote:



  Back in August we announced plans to release the Retweet feature along with
  an API to publish and consume retweets. Over the last few months we've been
  gradually opening up the feature to more users as we performance test and
  refine it. You can see some of the original announcement emails around
  retweets 
  here:http://groups.google.com/group/twitter-api-announce/browse_thread/thr..

  Today we've launched the feature to 100% of users. You can now consume
  retweets via the /statuses/home_timeline resource, as well as all the
  specialized retweet timelines. For backwards compatibility reasons we're
  stripping retweets out of the friends_timeline resource as well as the
  user_timeline resource. If you plan on implementing support for consuming
  retweets from timelines, switch all instances of /statuses/friends_timeline
  to /statuses/home_timeline.

  All the relevant retweet documentation can be found 
  here:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retwee...

  To those implementing this feature in your clients, I'd suggest taking some
  UI cues from what we've done on 
  Twitter.com:http://s3.amazonaws.com/twitter_production/differentiating-retweets.png

  Notice how the retweet by @ablegrape of @wblakegray's tweet is clearly
  differentiated from the surrounding tweets with a distinctive retweet icon
  and the Retweeted by label along the bottom. This is just one way of doing
  it. Use whatever interface you think makes sense. What's important is
  communicating to your users that the tweet they are seeing was shared with
  them by someone they follow so they don't get confused by seeing tweets in
  their timeline from people they aren't following.

  We're just getting started with the retweet feature but we're happy with
  this initial v1 we pushed out. We're really looking forward to seeing how
  everyone works with this new API.

  --
  Marcel Molina
  Twitter Platform Teamhttp://twitter.com/noradio


[twitter-dev] Re: new statuses not showing in statuses/friends call (only after long delay)

2009-11-27 Thread Frank Mertz

Still experiencing the problem of several hours delay until a new
tweet of a user's friend appears in the statuses/friends response
(strangely only for friends with protected statuses).

I have opened an issue on this problem including some example
responses: http://code.google.com/p/twitter-api/issues/detail?id=1121

I know you must be really busy, but could someone of the Twitter API
team please give a short comment on this issue?

Thanks,
Frank



[twitter-dev] Re: oauth Process flow and status Part 1

2009-11-27 Thread abruton
Hi

I've found a test site that gives feedback to what the error is at
http://term.ie/oauth/example/

My error is that the signature is incorrect. What must the string look
like that needs to be signed? I've tested my script and I know it
encodes correctly if you give it the right information.

Can someone please post a copy of the string that is sent to be
encoded.

Best regards

Andre



On Nov 27, 6:22 am, Andre Bruton andrebru...@gmail.com wrote:
 Classic ASP

 On Fri, Nov 27, 2009 at 2:58 AM, Duane Roelands



 duane.roela...@gmail.com wrote:
  Andre,

  Are you sure there isn't already an OAuth library out there that will
  work for you?  What language are you developing in?

  --Duane

  On Nov 26, 2:11 am, abruton andrebru...@gmail.com wrote:
  Thank you for the help. I'm still trying to get the first part to
  work...

   1.  The first step in the process, you will make a GET request to
    http://twitter.com/oauth/request_token;.  In this request, you will 
   need
   the following parameters in this specific order:
   oauth_consumer_key
   oauth_nonce
   oauth_signature_method
   oauth_timestamp
   oauth_version
   oauth_signature

  What string do I sign?

  The whole URL?
  Eg:
  oauth_consumer_key=2FuDFffo1MnWkw9g2JK7621HAoauth_nonce=1112009260947V57BU
   QK06I7H1BL88VBR65VT2oauth_signature_method=HMAC-
  SHA1oauth_timestamp=1259226047oauth_version=1.0

  or

 http://twitter.com/oauth/request_token?oauth_consumer_key=2FuDFffo1Mn...

  When do I UTF-8 encode? Before signing or after signing?

  Same with the posting? What do i post and when do I UTF-8 encode?

  Best regards

  Andre

  On Nov 24, 10:17 pm, ryan alford ryanalford...@gmail.com wrote:

   The signature has to go last.  That's one mistake that most people make.
    You are suppose to put the parameters in order EXCEPT the signature
   parameter.  The signature parameter is created by using the other
   parameters, then it's appended to the end of the query string.

   The OAuth signature is generated.

   I made a blog post where I tried to explain it a little better than the
   documentation does.  It's for .Net for the desktop, but the process is 
   the
   same for any language, and only slightly different for web applications.

  http://eclipsed4utoo.com/blog/net-twitter-desktop-oauth-authentication/

   On Tue, Nov 24, 2009 at 3:12 PM, abruton andrebru...@gmail.com wrote:
Hi All

I am trying to get my head around the Twitter oauth flow.

The twitter documentation links to oauth.net for parameters, but these
are general and not well documented.

Is the first step to usehttp://twitter.com/oauth/request_token?

1. I created the following URL:

   http://twitter.com/oauth/request_token?oauth_consumer_key=3Uu...1HAo...

When I put this in a browser to test it, I get the following error:

Failed to validate oauth signature and token

1. What is wrong with the string?
  - Is the oauth_signature just your Consumer secret string?
  - Do I have to use oauth_signature_method and what method do I use.
If it is sha1, what string do I hash? The whole URL?

Do I POST the data tohttp://twitter.com/oauth/request_tokenorGETor
what?

Best regards

Andre F Bruton


Re: [twitter-dev] Re: Retweets and the Public Timeline

2009-11-27 Thread Nicole Simon
As retweets are such a basic feature for users, it is hard to understand how
this question could not have come up before in designing of the limitations.

I suggest you add a switch to the api call w/o authentication, then the apps
can decide what to do with this, as in once they are ready they can switch
it on.

As for the users, the suggestion can only be: do not use the retweet feature
if you are interested in sharing information to your followers,
as your retweets will not be seen elsewhere.

[similar thing btw is going for the lists: tweet results for a list do not
show
retweets or replies - meaning you have to advise users not to use @reply
at the beginning or the RT feature if they want their tweets seen]

Nicole

-- 


My german twitter site
http://mit140zeichen.de - http://twitter.com/m140z

Kontakt:
http://twitter.com/NicoleSimon
https://www.xing.com/profile/Nicole_Simon

skype: nicole.simon / mailto:nicole.si...@mit140zeichen.de
phone: +49 451 899 75 03 / mobile: +49 179 499 7076


[twitter-dev] Re: oauth Process flow and status Part 1

2009-11-27 Thread Duane Roelands
Classic ASP?  You may in for a rough road.

It not just an encoded URL.  You have to generate a signature for the
URL using some algorithms that may not be easily implemented in ASP.
I'm not saying it's impossible.

Why classic ASP?

On Nov 27, 7:56 am, abruton andrebru...@gmail.com wrote:
 Hi

 I've found a test site that gives feedback to what the error is 
 athttp://term.ie/oauth/example/

 My error is that the signature is incorrect. What must the string look
 like that needs to be signed? I've tested my script and I know it
 encodes correctly if you give it the right information.

 Can someone please post a copy of the string that is sent to be
 encoded.

 Best regards

 Andre

 On Nov 27, 6:22 am, Andre Bruton andrebru...@gmail.com wrote:

  Classic ASP

  On Fri, Nov 27, 2009 at 2:58 AM, Duane Roelands

  duane.roela...@gmail.com wrote:
   Andre,

   Are you sure there isn't already an OAuth library out there that will
   work for you?  What language are you developing in?

   --Duane

   On Nov 26, 2:11 am, abruton andrebru...@gmail.com wrote:
   Thank you for the help. I'm still trying to get the first part to
   work...

1.  The first step in the process, you will make a GET request to
 http://twitter.com/oauth/request_token;.  In this request, you will 
need
the following parameters in this specific order:
oauth_consumer_key
oauth_nonce
oauth_signature_method
oauth_timestamp
oauth_version
oauth_signature

   What string do I sign?

   The whole URL?
   Eg:
   oauth_consumer_key=2FuDFffo1MnWkw9g2JK7621HAoauth_nonce=1112009260947V57BU
QK06I7H1BL88VBR65VT2oauth_signature_method=HMAC-
   SHA1oauth_timestamp=1259226047oauth_version=1.0

   or

  http://twitter.com/oauth/request_token?oauth_consumer_key=2FuDFffo1Mn...

   When do I UTF-8 encode? Before signing or after signing?

   Same with the posting? What do i post and when do I UTF-8 encode?

   Best regards

   Andre

   On Nov 24, 10:17 pm, ryan alford ryanalford...@gmail.com wrote:

The signature has to go last.  That's one mistake that most people 
make.
 You are suppose to put the parameters in order EXCEPT the signature
parameter.  The signature parameter is created by using the other
parameters, then it's appended to the end of the query string.

The OAuth signature is generated.

I made a blog post where I tried to explain it a little better than the
documentation does.  It's for .Net for the desktop, but the process is 
the
same for any language, and only slightly different for web 
applications.

   http://eclipsed4utoo.com/blog/net-twitter-desktop-oauth-authentication/

On Tue, Nov 24, 2009 at 3:12 PM, abruton andrebru...@gmail.com wrote:
 Hi All

 I am trying to get my head around the Twitter oauth flow.

 The twitter documentation links to oauth.net for parameters, but 
 these
 are general and not well documented.

 Is the first step to usehttp://twitter.com/oauth/request_token?

 1. I created the following URL:

http://twitter.com/oauth/request_token?oauth_consumer_key=3Uu...1HAo...

 When I put this in a browser to test it, I get the following error:

 Failed to validate oauth signature and token

 1. What is wrong with the string?
   - Is the oauth_signature just your Consumer secret string?
   - Do I have to use oauth_signature_method and what method do I use.
 If it is sha1, what string do I hash? The whole URL?

 Do I POST the data tohttp://twitter.com/oauth/request_tokenorGETor
 what?

 Best regards

 Andre F Bruton


[twitter-dev] Unable to access private list statuses

2009-11-27 Thread Kiran
Hi,

I have been using twitter API from the fast few months in numerous
iPhone Apps. I just started using lists in one of my apps and facing
problems with private lists. Able to get response for public lists
successfully and getting Not found error for private lists.

I have two lists test and private which are public and private
respectively. When I try to get public list statuses I am getting the
response. For private list it is giving this error

Request : http://api.twitter.com/1/CliqueDemo/lists/private/statuses.xml

Response:

?xml version=1.0 encoding=UTF-8?
hash
  request/1/CliqueDemo/lists/private/statuses.xml/request
  errorNot found/error
/hash

Am I doing something wrong or need to do something more for private
lists ?.

Thanks in advance for the help.

Regards
Kiran


[twitter-dev] Re: Getting Not Found when trying to Delete List subscription using list id and oauth

2009-11-27 Thread Mark Ellul
Hi Mark,

Thanks for your response.

I realized it had to be the user who owned the list... and yes I know
you cannot delete members or subscribers for other ppl's lists...

But I am working on a list social network... which will be going live
next week!

Regards

Mark

On Nov 27, 12:56 am, Mark McBride mmcbr...@twitter.com wrote:
 Mark, you can't delete (or add) members from lists owned by other
 users.  In this case the reason you're getting a 404 is because the
 list 561510 owned by user mark_ellul doesn't exist.

    ---Mark



 On Wed, Nov 25, 2009 at 8:55 AM, Mark Ellul mark.el...@gmail.com wrote:
  HI,

  I have code working to remove subscriptions using list uris working,
  but have a use case where I need to delete a subscription with the
  list id.

  /1/mark_ellul/561510/subscribers.json?.. where mark_ellul is my
  name, and 561510 is the list I am trying to unsubscribe from (which is
  owned by another user)... should it be the user who owns the list
  name, and it will unsubcribe the authenticate user?

  Can someone please update this page, its totally off, showing the
  wrong url, and return values (DELETE) doesn't return anything normally
  (I think).

 http://apiwiki.twitter.com/Twitter-REST-API-Method:-DELETE-list-subsc...

  Any clarification would be appreciated

  Regards

  Mark


Re: [twitter-dev] Re: Search API questions

2009-11-27 Thread Raffi Krikorian

Just a couple of queries: I'm using the Atom format for search results
(As mentioned on http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search) 
.

I get the published date in the atom feed. So I am not sure what you
mean by created_at:Fri, 27 Nov 2009 00:06:44 +. The format
available in the atom feed is like this 2009-11-27T04:45:03Z. Do you
mean the JSON format or are you referring to the search results
returned by the streaming API ?

Oddly though if I viewed the same feed in my browser, I could see the
correct local times reported. Maybe a browser thing I guess...Anyway,
converting the time reported to my timezone, shouldn't be that much of
a problem I guess.


time reported as 2009-11-27T04:45:03Z is in ISO8601 (http://en.wikipedia.org/wiki/ISO_8601 
), and the Z at the end means Zulu time (otherwise known as UTC).  i  
wouldn't be all that surprised that if a browser, when encountering an  
atom feed, converts the time into local time.



The streaming API seems like a good idea. Probably will consider
shifting to it. In the meantime, does anyone have any ideas about my
first problem? Any idea as to why I get some stale results (some
times a couple of hours old) when I query with the API and the latest
results when I query using Twitter advanced search? Or will switching
to the feed generated for the advanced search results, instead of
using the API solve my problem ?



the search API does have a cache on it, specifically because there are  
a lot of applications which instead of using the streaming API are  
hammering the search API instead.  you are probably seeing a cache hit  
as the search result.


--
Raffi Krikorian
Twitter Platform Team
ra...@twitter.com | @raffi






Re: [twitter-dev] Re: problem with json api - empty results list

2009-11-27 Thread Raffi Krikorian
if you are only searching for a particular user, then using the search  
API is not the recommended way to do it -- especially because search  
does not index everything.  either, do as you said, and just use the  
RSS feed for that user or use the streaming API.



But doesn't answer how to deal with that problem. My app is already
live and it sucks. The twitter section is empty now. How can I correct
that ? Should I forgot about search api and connect my app directly to
the rss feed for that account ? Please please give me some
suggestions.


Thank you guys! It explains everything.


http://help.twitter.com/forums/31935/entries/66018



happy thanksgiving.



Thank you for your answer. There are no results indeed. But why ? I
don't understand the logic. Normally on twitter.com/mmflint there  
are

tweets, and rss feed is full too. Am I missing something obvious ?



Thanks for help.



That is because there are no results to 
return:http://search.twitter.com/search?q=from%3AMMFlint



Hello group, I have a problem with one single url:
http://search.twitter.com/search.json?q=from%3AMMFlint
I integrated that json flow in my app but since about one week  
the
results array stays empty. I was trying to find info about  
limits,

valid dates, etc but there is nothing about that on the json api
page.
Can somebody help me with that issue ? What am I doing wrong ?



Thanks in advance



marcin


--
Raffi Krikorian
Twitter Platform Team
ra...@twitter.com | @raffi






Re: [twitter-dev] Re: Retweet API launched to 100% of users

2009-11-27 Thread Mark McBride
The retweets should also be available in the streaming API.

   ---Mark

On Fri, Nov 27, 2009 at 2:37 AM, Yusuke yus...@mac.com wrote:
 Hi,

 It can be Twitter4J side's problem.
 I'll take a look at it later.

 Cheers,
 Yusuke

 On 11月27日, 午後5:06, hansamann sven.hai...@googlemail.com wrote:
 I am working with Twitter4J which should have support for the latest
 retweet format in the current Snapshot. Somehow I cannot get the
 retweetedStatus object, it returns null, so I am wondering if retweets
 are also part of the streaming API which I am using. I am using the
 filter stream and would like to detect retweeted messages in this
 stream.

 Based on the last information form Twitter this should be possible and
 the retweetedStatus info should be part of the filter stream statuses.
 Is this still correct?

 Cheers
 Sven

 On Nov 19, 5:16 pm, Marcel Molina mar...@twitter.com wrote:



  Back in August we announced plans to release the Retweet feature along with
  an API to publish and consume retweets. Over the last few months we've been
  gradually opening up the feature to more users as we performance test and
  refine it. You can see some of the original announcement emails around
  retweets 
  here:http://groups.google.com/group/twitter-api-announce/browse_thread/thr..

  Today we've launched the feature to 100% of users. You can now consume
  retweets via the /statuses/home_timeline resource, as well as all the
  specialized retweet timelines. For backwards compatibility reasons we're
  stripping retweets out of the friends_timeline resource as well as the
  user_timeline resource. If you plan on implementing support for consuming
  retweets from timelines, switch all instances of /statuses/friends_timeline
  to /statuses/home_timeline.

  All the relevant retweet documentation can be found 
  here:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-retwee...

  To those implementing this feature in your clients, I'd suggest taking some
  UI cues from what we've done on 
  Twitter.com:http://s3.amazonaws.com/twitter_production/differentiating-retweets.png

  Notice how the retweet by @ablegrape of @wblakegray's tweet is clearly
  differentiated from the surrounding tweets with a distinctive retweet icon
  and the Retweeted by label along the bottom. This is just one way of 
  doing
  it. Use whatever interface you think makes sense. What's important is
  communicating to your users that the tweet they are seeing was shared with
  them by someone they follow so they don't get confused by seeing tweets in
  their timeline from people they aren't following.

  We're just getting started with the retweet feature but we're happy with
  this initial v1 we pushed out. We're really looking forward to seeing how
  everyone works with this new API.

  --
  Marcel Molina
  Twitter Platform Teamhttp://twitter.com/noradio



Re: [twitter-dev] Re: oauth Process flow and status Part 1

2009-11-27 Thread Mark McBride
The OAuth spec has an example.  However it's included as an appendix,
so it's not really highlighted

http://oauth.net/core/1.0#anchor30

This is an example of a string to encode

GEThttp%3A%2F%2Fphotos.example.net%2Fphotosfile%3Dvacation.jpg%26oauth_consumer_key%3Ddpf43f3p2l4k3l03%26oauth_nonce%3Dkllo9940pd9333jh%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1191242096%26oauth_token%3Dnnch734d00sl2jdk%26oauth_version%3D1.0%26size%3Doriginal

Getting everything ordered, the right things URL encoded and then
concatenated is tedious but it's all pretty straightforward.  There
are implementations in JavaScript, so I'd imagine a pure ASP version
wouldn't be impossible.

   ---Mark

On Fri, Nov 27, 2009 at 5:45 AM, Duane Roelands
duane.roela...@gmail.com wrote:
 Classic ASP?  You may in for a rough road.

 It not just an encoded URL.  You have to generate a signature for the
 URL using some algorithms that may not be easily implemented in ASP.
 I'm not saying it's impossible.

 Why classic ASP?

 On Nov 27, 7:56 am, abruton andrebru...@gmail.com wrote:
 Hi

 I've found a test site that gives feedback to what the error is 
 athttp://term.ie/oauth/example/

 My error is that the signature is incorrect. What must the string look
 like that needs to be signed? I've tested my script and I know it
 encodes correctly if you give it the right information.

 Can someone please post a copy of the string that is sent to be
 encoded.

 Best regards

 Andre

 On Nov 27, 6:22 am, Andre Bruton andrebru...@gmail.com wrote:

  Classic ASP

  On Fri, Nov 27, 2009 at 2:58 AM, Duane Roelands

  duane.roela...@gmail.com wrote:
   Andre,

   Are you sure there isn't already an OAuth library out there that will
   work for you?  What language are you developing in?

   --Duane

   On Nov 26, 2:11 am, abruton andrebru...@gmail.com wrote:
   Thank you for the help. I'm still trying to get the first part to
   work...

1.  The first step in the process, you will make a GET request to
 http://twitter.com/oauth/request_token;.  In this request, you will 
need
the following parameters in this specific order:
oauth_consumer_key
oauth_nonce
oauth_signature_method
oauth_timestamp
oauth_version
oauth_signature

   What string do I sign?

   The whole URL?
   Eg:
   oauth_consumer_key=2FuDFffo1MnWkw9g2JK7621HAoauth_nonce=1112009260947V57BU
QK06I7H1BL88VBR65VT2oauth_signature_method=HMAC-
   SHA1oauth_timestamp=1259226047oauth_version=1.0

   or

  http://twitter.com/oauth/request_token?oauth_consumer_key=2FuDFffo1Mn...

   When do I UTF-8 encode? Before signing or after signing?

   Same with the posting? What do i post and when do I UTF-8 encode?

   Best regards

   Andre

   On Nov 24, 10:17 pm, ryan alford ryanalford...@gmail.com wrote:

The signature has to go last.  That's one mistake that most people 
make.
 You are suppose to put the parameters in order EXCEPT the signature
parameter.  The signature parameter is created by using the other
parameters, then it's appended to the end of the query string.

The OAuth signature is generated.

I made a blog post where I tried to explain it a little better than 
the
documentation does.  It's for .Net for the desktop, but the process 
is the
same for any language, and only slightly different for web 
applications.

   http://eclipsed4utoo.com/blog/net-twitter-desktop-oauth-authentication/

On Tue, Nov 24, 2009 at 3:12 PM, abruton andrebru...@gmail.com 
wrote:
 Hi All

 I am trying to get my head around the Twitter oauth flow.

 The twitter documentation links to oauth.net for parameters, but 
 these
 are general and not well documented.

 Is the first step to usehttp://twitter.com/oauth/request_token?

 1. I created the following URL:

http://twitter.com/oauth/request_token?oauth_consumer_key=3Uu...1HAo...

 When I put this in a browser to test it, I get the following error:

 Failed to validate oauth signature and token

 1. What is wrong with the string?
   - Is the oauth_signature just your Consumer secret string?
   - Do I have to use oauth_signature_method and what method do I 
 use.
 If it is sha1, what string do I hash? The whole URL?

 Do I POST the data tohttp://twitter.com/oauth/request_tokenorGETor
 what?

 Best regards

 Andre F Bruton



Re: [twitter-dev] Re: oauth Process flow and status Part 1

2009-11-27 Thread Raffi Krikorian
this is my favorite javascript oauth library - http://oauth.googlecode.com/svn/code/javascript/ 
 - its pretty well written, and could be ported relatively easily.



The OAuth spec has an example.  However it's included as an appendix,
so it's not really highlighted

http://oauth.net/core/1.0#anchor30

This is an example of a string to encode

GEThttp%3A%2F%2Fphotos.example.net%2Fphotosfile%3Dvacation.jpg 
%26oauth_consumer_key%3Ddpf43f3p2l4k3l03%26oauth_nonce 
%3Dkllo9940pd9333jh%26oauth_signature_method%3DHMAC- 
SHA1%26oauth_timestamp%3D1191242096%26oauth_token%3Dnnch734d00sl2jdk 
%26oauth_version%3D1.0%26size%3Doriginal


Getting everything ordered, the right things URL encoded and then
concatenated is tedious but it's all pretty straightforward.  There
are implementations in JavaScript, so I'd imagine a pure ASP version
wouldn't be impossible.

  ---Mark


Classic ASP?  You may in for a rough road.

It not just an encoded URL.  You have to generate a signature for the
URL using some algorithms that may not be easily implemented in ASP.
I'm not saying it's impossible.

Why classic ASP?


Hi

I've found a test site that gives feedback to what the error is 
athttp://term.ie/oauth/example/

My error is that the signature is incorrect. What must the string  
look

like that needs to be signed? I've tested my script and I know it
encodes correctly if you give it the right information.

Can someone please post a copy of the string that is sent to be
encoded.

Best regards

Andre


Classic ASP



Andre,


Are you sure there isn't already an OAuth library out there that  
will

work for you?  What language are you developing in?



--Duane



Thank you for the help. I'm still trying to get the first part to
work...


1.  The first step in the process, you will make a GET request  
to
 http://twitter.com/oauth/request_token;.  In this request,  
you will need

the following parameters in this specific order:
oauth_consumer_key
oauth_nonce
oauth_signature_method
oauth_timestamp
oauth_version
oauth_signature



What string do I sign?



The whole URL?
Eg:
oauth_consumer_key 
=2FuDFffo1MnWkw9g2JK7621HAoauth_nonce=1112009260947V57BU  
QK06I7H1BL88VBR65VT2oauth_signature_method=HMAC-

SHA1oauth_timestamp=1259226047oauth_version=1.0



or


http://twitter.com/oauth/request_token?oauth_consumer_key=2FuDFffo1Mn 
...



When do I UTF-8 encode? Before signing or after signing?



Same with the posting? What do i post and when do I UTF-8 encode?



Best regards



Andre


The signature has to go last.  That's one mistake that most  
people make.
 You are suppose to put the parameters in order EXCEPT the  
signature
parameter.  The signature parameter is created by using the  
other

parameters, then it's appended to the end of the query string.



The OAuth signature is generated.


I made a blog post where I tried to explain it a little better  
than the
documentation does.  It's for .Net for the desktop, but the  
process is the
same for any language, and only slightly different for web  
applications.



http://eclipsed4utoo.com/blog/net-twitter-desktop-oauth-authentication/



Hi All



I am trying to get my head around the Twitter oauth flow.


The twitter documentation links to oauth.net for parameters,  
but these

are general and not well documented.



Is the first step to usehttp://twitter.com/oauth/request_token?



1. I created the following URL:


http://twitter.com/oauth/request_token?oauth_consumer_key=3Uu...1HAo 
...


When I put this in a browser to test it, I get the following  
error:



Failed to validate oauth signature and token



1. What is wrong with the string?
  - Is the oauth_signature just your Consumer secret string?
  - Do I have to use oauth_signature_method and what method  
do I use.

If it is sha1, what string do I hash? The whole URL?



Do I POST the data tohttp://twitter.com/oauth/request_tokenorGETor
what?



Best regards



Andre F Bruton


--
Raffi Krikorian
Twitter Platform Team
ra...@twitter.com | @raffi






Re: [twitter-dev] Re: Getting Not Found when trying to Delete List subscription using list id and oauth

2009-11-27 Thread Mark McBride
Ah, I misunderstood the question.  I updated the wiki page (and the
lists/subscribers wiki page) to clarify

   ---Mark

On Fri, Nov 27, 2009 at 3:13 AM, Mark Ellul mark.el...@gmail.com wrote:
 Hi Mark,

 Thanks for your response.

 I realized it had to be the user who owned the list... and yes I know
 you cannot delete members or subscribers for other ppl's lists...

 But I am working on a list social network... which will be going live
 next week!

 Regards

 Mark

 On Nov 27, 12:56 am, Mark McBride mmcbr...@twitter.com wrote:
 Mark, you can't delete (or add) members from lists owned by other
 users.  In this case the reason you're getting a 404 is because the
 list 561510 owned by user mark_ellul doesn't exist.

    ---Mark



 On Wed, Nov 25, 2009 at 8:55 AM, Mark Ellul mark.el...@gmail.com wrote:
  HI,

  I have code working to remove subscriptions using list uris working,
  but have a use case where I need to delete a subscription with the
  list id.

  /1/mark_ellul/561510/subscribers.json?.. where mark_ellul is my
  name, and 561510 is the list I am trying to unsubscribe from (which is
  owned by another user)... should it be the user who owns the list
  name, and it will unsubcribe the authenticate user?

  Can someone please update this page, its totally off, showing the
  wrong url, and return values (DELETE) doesn't return anything normally
  (I think).

 http://apiwiki.twitter.com/Twitter-REST-API-Method:-DELETE-list-subsc...

  Any clarification would be appreciated

  Regards

  Mark



Re: [twitter-dev] Unable to access private list statuses

2009-11-27 Thread Mark McBride
Are you authenticating when making the call to a private list?  If you
aren't authenticated as the creator of a private list you will get a
404 on this call.

   ---Mark

On Fri, Nov 27, 2009 at 2:09 AM, Kiran dispatchtoki...@gmail.com wrote:
 Hi,

 I have been using twitter API from the fast few months in numerous
 iPhone Apps. I just started using lists in one of my apps and facing
 problems with private lists. Able to get response for public lists
 successfully and getting Not found error for private lists.

 I have two lists test and private which are public and private
 respectively. When I try to get public list statuses I am getting the
 response. For private list it is giving this error

 Request : http://api.twitter.com/1/CliqueDemo/lists/private/statuses.xml

 Response:

 ?xml version=1.0 encoding=UTF-8?
 hash
  request/1/CliqueDemo/lists/private/statuses.xml/request
  errorNot found/error
 /hash

 Am I doing something wrong or need to do something more for private
 lists ?.

 Thanks in advance for the help.

 Regards
 Kiran



[twitter-dev] Re: Search API questions

2009-11-27 Thread enygmatic
@Raffi, thanks for the reply. I now convert the time from UTC to my
local time zone, so my time zone problem is sorted out. On the issue
of search, been going through the streaming api docs. From what I have
gone through so far, there doesn't seem to be a way to query for
status updates from a certain geographical location, say limited to a
city. I may be mistaken here, so do correct me if I am wrong.

Anyway, I guess I will have to live with the stale results from
cache for now.
Thanks for the help.


On Nov 27, 7:44 pm, Raffi Krikorian ra...@twitter.com wrote:
  Just a couple of queries: I'm using the Atom format for search results
  (As mentioned 
  onhttp://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search)
  .
  I get the published date in the atom feed. So I am not sure what you
  mean by created_at:Fri, 27 Nov 2009 00:06:44 +. The format
  available in the atom feed is like this 2009-11-27T04:45:03Z. Do you
  mean the JSON format or are you referring to the search results
  returned by the streaming API ?

  Oddly though if I viewed the same feed in my browser, I could see the
  correct local times reported. Maybe a browser thing I guess...Anyway,
  converting the time reported to my timezone, shouldn't be that much of
  a problem I guess.

 time reported as 2009-11-27T04:45:03Z is in ISO8601 
 (http://en.wikipedia.org/wiki/ISO_8601
 ), and the Z at the end means Zulu time (otherwise known as UTC).  i  
 wouldn't be all that surprised that if a browser, when encountering an  
 atom feed, converts the time into local time.

  The streaming API seems like a good idea. Probably will consider
  shifting to it. In the meantime, does anyone have any ideas about my
  first problem? Any idea as to why I get some stale results (some
  times a couple of hours old) when I query with the API and the latest
  results when I query using Twitter advanced search? Or will switching
  to the feed generated for the advanced search results, instead of
  using the API solve my problem ?

 the search API does have a cache on it, specifically because there are  
 a lot of applications which instead of using the streaming API are  
 hammering the search API instead.  you are probably seeing a cache hit  
 as the search result.

 --
 Raffi Krikorian
 Twitter Platform Team
 ra...@twitter.com | @raffi


[twitter-dev] Re: can't follow - js broken

2009-11-27 Thread karlwilbur
I have been getting the same error for a few days now. Twitter's JS is
failing with twttr is not defined on line 1332

===
1325
1326script type=text/javascript
1327//![CDATA[
1328 page.user_screenname = 'screenname_deleted';
1329 page.user_fullname = 'fullname_deleted';
1330 page.controller_name = 'AccountController';
1331 page.action_name = 'profile';
1332 twttr.form_authenticity_token = 'token_deleted';
1333 // FIXME: Reconcile with the kinds on the Status model.
1334 twttr.statusKinds = {
1335 UPDATE: 1,
1336 SHARE: 2
1337 };
1338 twttr.ListPerUserLimit = 20;
1339
1340
1341//]]
1342/script
===

Using Firefox 3.5.5 on Ubuntu 9.10. I have not changed or update any
extensions immediately prior to this error beginning to occur.

On Nov 9, 5:01 pm, markbrown4 markbro...@gmail.com wrote:
 I've been getting the following when trying to follow another user for
 the last couple of days..

 $.metadata is undefined
 [Break on this error] $.metadata.setType(attr,data);var
 LI...wrong. Please try again!)).show()}}))};lists.js...257546991
 (line 1)
 twttr is not defined
 [Break on this error] twttr.form_authenticity_token = 'a...
 3677c17c35b33e3f21ce57c831f556b90bd16';\ndaniel15 (line 747)
 initializePage is not defined
 [Break on this error] initializePage();\n


Re: [twitter-dev] Re: can't follow - js broken

2009-11-27 Thread Abraham Williams
I just tested following people in Firefox 3.5.5 and the latest dev preview
of Chrome on OSX 10.6 and it worked perfectly.

Abraham

On Fri, Nov 27, 2009 at 12:10, karlwilbur karlwil...@gmail.com wrote:

 I have been getting the same error for a few days now. Twitter's JS is
 failing with twttr is not defined on line 1332

 ===
 1325
 1326script type=text/javascript
 1327//![CDATA[
 1328 page.user_screenname = 'screenname_deleted';
 1329 page.user_fullname = 'fullname_deleted';
 1330 page.controller_name = 'AccountController';
 1331 page.action_name = 'profile';
 1332 twttr.form_authenticity_token = 'token_deleted';
 1333 // FIXME: Reconcile with the kinds on the Status model.
 1334 twttr.statusKinds = {
 1335 UPDATE: 1,
 1336 SHARE: 2
 1337 };
 1338 twttr.ListPerUserLimit = 20;
 1339
 1340
 1341//]]
 1342/script
 ===

 Using Firefox 3.5.5 on Ubuntu 9.10. I have not changed or update any
 extensions immediately prior to this error beginning to occur.

 On Nov 9, 5:01 pm, markbrown4 markbro...@gmail.com wrote:
  I've been getting the following when trying to follow another user for
  the last couple of days..
 
  $.metadata is undefined
  [Break on this error] $.metadata.setType(attr,data);var
  LI...wrong. Please try again!)).show()}}))};lists.js...257546991
  (line 1)
  twttr is not defined
  [Break on this error] twttr.form_authenticity_token = 'a...
  3677c17c35b33e3f21ce57c831f556b90bd16';\ndaniel15 (line 747)
  initializePage is not defined
  [Break on this error] initializePage();\n




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.


Re: [twitter-dev] Re: Search API questions

2009-11-27 Thread Abraham Williams
On Fri, Nov 27, 2009 at 12:38, enygmatic enygma...@gmail.com wrote:

 From what I have
 gone through so far, there doesn't seem to be a way to query for
 status updates from a certain geographical location, say limited to a
 city. I may be mistaken here, so do correct me if I am wrong.


Check out the search operators: http://search.twitter.com/operators

For example: http://search.twitter.com/search?q=near:NYC+within:15mi

Abraham
-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States


Re: [twitter-dev] Testing whitelisted IP

2009-11-27 Thread Abraham Williams
The Search API's rate limit is separate from the REST API and is not
affected by whitelisting.

Abraham

On Wed, Nov 25, 2009 at 15:08, shiplu shiplu@gmail.com wrote:

 If I send the following query to twitter from my whitelisted IP I get
 X-RateLimit-Limi: 150. Shouldn't it be 20,000 ?

 $ curl  -i 'http://twitter.com/search.json?q=Intel'
 HTTP/1.1 200 OK
 Date: Wed, 25 Nov 2009 20:57:24 GMT
 Server: hi
 X-RateLimit-Limit: 150
 X-Transaction: 1259182644-48393-13844
 Status: 200 OK
 ETag: fcaf33d8c4c24d59d2f0fc1ec99e20f8
 Last-Modified: Wed, 25 Nov 2009 20:57:24 GMT
 X-RateLimit-Remaining: 147
 X-Runtime: 0.05157
 Content-Type: application/json; charset=utf-8
 Pragma: no-cache
 Content-Length: 7594
 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
 post-check=0
 Expires: Tue, 31 Mar 1981 05:00:00 GMT
 X-Revision: DEV
 X-RateLimit-Reset: 1259182760
 Set-Cookie:
 _twitter_sess=BAh7CDoRdHJhbnNfcHJvbXB0MDoHaWQiJWVlY2M5MWU5MzE3YjhjMTQwMTNm%250AZWE1MmYxMmU0NDViIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%250AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--6fa4c4ce1ea2802dfeccc88ea41b96d299d59707;
 domain=.twitter.com; path=/
 Vary: Accept-Encoding
 Connection: close

 {results:[
 __truncated___

 Does that mean its not yet activated as I got the approval mail already.



 --
 A K M Mokaddim
 My talks, http://talk.cmyweb.net
 Follow me, http://twitter.com/shiplu
 SUST Programmers, http://groups.google.com/group/p2psust
 Innovation distinguishes bet ... ... (ask Steve Jobs the rest)




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States


Re: [twitter-dev] Testing whitelisted IP

2009-11-27 Thread Shiplu
I know what are you talking about.

But see this,

$ curl  -i -u whitelistedaccount:PASSWORD
'http://twitter.com/search.json?q=Intel'
HTTP/1.1 200 OK
Date: Fri, 27 Nov 2009 20:30:55 GMT
Server: hi
X-RateLimit-Limit: 2
X-Transaction: 1259353855-57171-17627
Status: 200 OK
ETag: 23053bbf2bc88e86b55b1c89552ff254
Last-Modified: Fri, 27 Nov 2009 20:30:55 GMT
X-RateLimit-Remaining: 1
X-Runtime: 0.11207
Content-Type: application/json; charset=utf-8
Pragma: no-cache
Content-Length: 7396
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Expires: Tue, 31 Mar 1981 05:00:00 GMT
X-Revision: DEV
X-RateLimit-Reset: 1259357455
Set-Cookie: 
_twitter_sess=BAh7CjoTcGFzc3dvcmRfdG9rZW4iLWFiNDlkNmMzZWJkNzBlMWMzMDExMjJi%250AYjAwZGI0YmU5NDhlZjI2MjY6EXRyYW5zX3Byb21wdDA6CXVzZXJpBIdCWgI6%250AB2lkIiUxOTc1N2Q0MGM0YWFmZjVjMjZiZjVlNTk4N2I0ZTlhZCIKZmxhc2hJ%250AQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVz%250AZWR7AA%253D%253D--f9c9801cad717aa2fd4138a43b80cfb73ade35ef;
domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close



-- 
A K M Mokaddim
Talks: http://talk.cmyweb.net
Follow: http://twitter.com/shiplu
SUST Programmers help desk. http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)


[twitter-dev] Re: Twitter PHP + CentOS

2009-11-27 Thread aztroboy
Hi Michael! Thank you for answering!

Did so, it says it is enabled.


Now, I also noticed that in the beggining there's also a '--without
curl' statement.


Such a newbie question, but: would that affect in some way?


Thank you again


On 25 nov, 20:55, Michael Steuer mste...@gmail.com wrote:
 Create a page that prints out phpinfo(). See if the curl module is  
 active in your php

 On Nov 25, 2009, at 5:19 PM, aztroboy jbasur...@gmail.com wrote:

  Thank you for your reply,

  [r...@twirelezz ~]# php -version
  PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
  Copyright (c) 1997-2006 The PHP Group
  Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

  Not bad, now I updated PHP to its lastest version:

  [r...@twirelezz ~]# php -v
  PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
  Copyright (c) 1997-2009 The PHP Group
  Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

  However, I'm getting the same response: twitter won't give me the
  auth_token :( (or at least, it's giving me a null response)

  On 25 nov, 18:36, jmathai jmat...@gmail.com wrote:
  Check the versions of software you're using. CentOS likes to make you
  jump through hoops in order to get newer software.

  Namely, check your PHP version.

  On Nov 25, 9:08 am, aztroboy jbasur...@gmail.com wrote:

  Hello there! I'm using a PHP Twitter OAuth library  
  (twitter.abrah.am),
  and it works perfect on Windows: the php script looks asks twitter  
  for
  an auth token. However, as soon as I put the same script on CentOS
  (with its default httpd service), it won't give any auth tokens at
  all.

  The script uses cURL to get the token from twitter. I've used cURL
  (curlwww.google.com) and it works fine in console.

  What could be going wrong here? Is there something I should add of
  change first in order to receive the tokens? By the way, I got the
  CentOS default FW set allowing traffic on port 80 and SSH only.

  I would like to ask for a hint about what should I do, I'm kinda
  newbie on CentOS.

  thank you in advance


[twitter-dev] Re: Twitter PHP + CentOS

2009-11-27 Thread aztroboy
It seems that I can't send imgs, anyways, here are the screenshots:

http:// img16. imageshack . us /img16/7901/curl.png
http:// img38. imageshack. us/img38/4926/curl2.png


On 25 nov, 20:55, Michael Steuer mste...@gmail.com wrote:
 Create a page that prints out phpinfo(). See if the curl module is  
 active in your php

 On Nov 25, 2009, at 5:19 PM, aztroboy jbasur...@gmail.com wrote:

  Thank you for your reply,

  [r...@twirelezz ~]# php -version
  PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
  Copyright (c) 1997-2006 The PHP Group
  Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

  Not bad, now I updated PHP to its lastest version:

  [r...@twirelezz ~]# php -v
  PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
  Copyright (c) 1997-2009 The PHP Group
  Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

  However, I'm getting the same response: twitter won't give me the
  auth_token :( (or at least, it's giving me a null response)

  On 25 nov, 18:36, jmathai jmat...@gmail.com wrote:
  Check the versions of software you're using. CentOS likes to make you
  jump through hoops in order to get newer software.

  Namely, check your PHP version.

  On Nov 25, 9:08 am, aztroboy jbasur...@gmail.com wrote:

  Hello there! I'm using a PHP Twitter OAuth library  
  (twitter.abrah.am),
  and it works perfect on Windows: the php script looks asks twitter  
  for
  an auth token. However, as soon as I put the same script on CentOS
  (with its default httpd service), it won't give any auth tokens at
  all.

  The script uses cURL to get the token from twitter. I've used cURL
  (curlwww.google.com) and it works fine in console.

  What could be going wrong here? Is there something I should add of
  change first in order to receive the tokens? By the way, I got the
  CentOS default FW set allowing traffic on port 80 and SSH only.

  I would like to ask for a hint about what should I do, I'm kinda
  newbie on CentOS.

  thank you in advance


Re: [twitter-dev] Re: Twitter PHP + CentOS

2009-11-27 Thread Scott Haneda

Apparently you have issues pasting image urls as well :)
I would try to see what the errors are, there are a few ways you can  
do this, depending on how centOS is set up.


http://php.net/manual/en/function.error-reporting.php
You can add the error handling enabler to your script, this works most  
of the time.  With certain errors, the script will not have run,  
therefore, the enabling of the error can not be run to report an error.


In those cases, you need to set the error enabling in .htaccess or  
php.ini, neither of which you want to leave on, once going to  
production state.  I usually wrap them up in a way that only loads  
an .htaccess file for my IP, and a strict one for everyone else.


In .htaccess it may be something like this:
php_flag display_errors On
 - or -
php_flag display_errors 1

* I get different results depending on different php's if it is string  
or boolean.


Now, when you load your page, you will get the exact error as the page  
generated it.  If you have full control over the server, it may also  
be just as simple to set the logging to a file, usually the error_log  
for Apache.  Then you can `tail -f error_log` in your shell.  This is  
generally default behavior, check phpInfo() for the path.


I have a feeling you are missing curl.  It may be a simpler test to  
just make one call to check for it:

if (function_exists('curl')) {
 echo 'good';
} else {
 echo 'bad';
}

Maybe php was installed with curl, but the OS itself is missing curl?   
Can you `curl --head http://google.com` in a shell on this machine?

--
Scott * If you contact me off list replace talklists@ with scott@ *

On Nov 27, 2009, at 7:50 PM, aztroboy wrote:


It seems that I can't send imgs, anyways, here are the screenshots:

http:// img16. imageshack . us /img16/7901/curl.png
http:// img38. imageshack. us/img38/4926/curl2.png


On 25 nov, 20:55, Michael Steuer mste...@gmail.com wrote:

Create a page that prints out phpinfo(). See if the curl module is
active in your php

On Nov 25, 2009, at 5:19 PM, aztroboy jbasur...@gmail.com wrote:


Thank you for your reply,



[r...@twirelezz ~]# php -version
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies



Not bad, now I updated PHP to its lastest version:



[r...@twirelezz ~]# php -v
PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies



However, I'm getting the same response: twitter won't give me the
auth_token :( (or at least, it's giving me a null response)



On 25 nov, 18:36, jmathai jmat...@gmail.com wrote:
Check the versions of software you're using. CentOS likes to make  
you

jump through hoops in order to get newer software.



Namely, check your PHP version.



On Nov 25, 9:08 am, aztroboy jbasur...@gmail.com wrote:



Hello there! I'm using a PHP Twitter OAuth library
(twitter.abrah.am),
and it works perfect on Windows: the php script looks asks twitter
for
an auth token. However, as soon as I put the same script on CentOS
(with its default httpd service), it won't give any auth tokens at
all.



The script uses cURL to get the token from twitter. I've used cURL
(curlwww.google.com) and it works fine in console.



What could be going wrong here? Is there something I should add of
change first in order to receive the tokens? By the way, I got the
CentOS default FW set allowing traffic on port 80 and SSH only.



I would like to ask for a hint about what should I do, I'm kinda
newbie on CentOS.



thank you in advance