Re: [twitter-dev] Re: About OAuth

2010-09-05 Thread Scott Wilcox
I wrote a small PHP script which can be run CLI:

Its at: http://dor.ky/entry/twitter-api-oauth-update-status

If you need any help adapting that to your needs, just pop me an email off list 
and I'll be happy to help you.

Scott.

On 5 Sep 2010, at 03:16, mikesouthern wrote:

 But ... but ... I'm trying to do a similar kind of thing from a perl
 command line.
 
 I looked at this on github before, and where it says:
 // Register an application at http://dev.twitter.com/apps and from
 your new apps page get my access token.
 
 There is no application for me to go to in order to get an access
 token. I also need the script to run from a cron scheduler so I can't
 have it stop and ask me for a verification PIN with each run.
 
 Have you come across similar difficulties elsewhere? My searches are
 turning up tantalisingly incomplete and inconsistent code snippets
 that don't work ..
 
 On Sep 4, 5:52 pm, Abraham Williams 4bra...@gmail.com wrote:
 Have a look athttp://gist.github.com/564882
 
 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 Thu, Sep 2, 2010 at 19:50, David dav...@alltraders.com wrote:
 I found out twitter does not support Basic Auth any, and I wonder how
 can I change my code from  Basic Auth to OAuth.
 
 and my code like following:
 
 $username=username;
$password=password;
$message=message;
$host = http://twitter.com/statuses/update.xml;;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
//curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, $config-timeout );
curl_setopt($ch, CURLOPT_USERPWD, $username:$password);
curl_setopt($ch, CURLOPT_POSTFIELDS,status=$message);
//curl_setopt($ch, CURLOPT_HTTP_VERSION,
 CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
$result = curl_exec($ch);
// Look at the returned header
$resultArray = curl_getinfo($ch);
curl_close($ch);
 
 --
 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


Scott Wilcox

t:  +44 (0) 7538 842418 
+1 (646) 257 0580
e:  sc...@dor.ky
w:  http://dor.ky
http://synfinaty.com



smime.p7s
Description: S/MIME cryptographic signature


[twitter-dev] Re: Help with xAuth and PHP

2010-09-05 Thread hgc2002
Hi Tom,

Thank you very much for helping me, but I'm still with failures.

Now the response from Twitter is different, but I can't say it's
because I've improve my code...

I've added your recommendations, basicaly:

.- str_replace improvements
.- delete consumer secret key from request
.- set the authorization header
.- not urlencoding again the post body

Now the response is as follows:

HTTP/1.1 401 Unauthorized
Date: Sun, 05 Sep 2010 10:15:08 GMT
Server: hi
Status: 401 Unauthorized
X-Transaction: 1283681708-66911-2656
Last-Modified: Sun, 05 Sep 2010 10:15:08 GMT
X-Runtime: 0.00720
Content-Type: text/html; charset=utf-8
Content-Length: 44
Pragma: no-cache
X-Revision: DEV
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
check=0
Set-Cookie: k=77.228.28.45.1283681708214986; path=/; expires=Sun, 12-
Sep-10 10:15:08 GMT; domain=.twitter.com
Set-Cookie: guest_id=128368170822042500; path=/; expires=Tue, 05 Oct
2010 10:15:08 GMT
Set-Cookie:
_twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCL1oZOEqAToHaWQiJTM0OTkwNTcyMzUwZGFm
%250AZWFlMDU3N2Q2YzgzMDYyYjZjIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy
%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--002c700da5387afac77e4a980cb36f841c00ca31;
domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close

Failed to validate oauth signature and token

Any idea?

Regards,
Herman.

-- 
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: Help with xAuth and PHP

2010-09-05 Thread Tom van der Woerdt
What's the base string?

Tom


On 5 sep. 2010, at 12:18, hgc2002 herman.go...@gmail.com wrote:

 Hi Tom,
 
 Thank you very much for helping me, but I'm still with failures.
 
 Now the response from Twitter is different, but I can't say it's
 because I've improve my code...
 
 I've added your recommendations, basicaly:
 
 .- str_replace improvements
 .- delete consumer secret key from request
 .- set the authorization header
 .- not urlencoding again the post body
 
 Now the response is as follows:
 
 HTTP/1.1 401 Unauthorized
 Date: Sun, 05 Sep 2010 10:15:08 GMT
 Server: hi
 Status: 401 Unauthorized
 X-Transaction: 1283681708-66911-2656
 Last-Modified: Sun, 05 Sep 2010 10:15:08 GMT
 X-Runtime: 0.00720
 Content-Type: text/html; charset=utf-8
 Content-Length: 44
 Pragma: no-cache
 X-Revision: DEV
 Expires: Tue, 31 Mar 1981 05:00:00 GMT
 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
 check=0
 Set-Cookie: k=77.228.28.45.1283681708214986; path=/; expires=Sun, 12-
 Sep-10 10:15:08 GMT; domain=.twitter.com
 Set-Cookie: guest_id=128368170822042500; path=/; expires=Tue, 05 Oct
 2010 10:15:08 GMT
 Set-Cookie:
 _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCL1oZOEqAToHaWQiJTM0OTkwNTcyMzUwZGFm
 %250AZWFlMDU3N2Q2YzgzMDYyYjZjIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy
 %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--002c700da5387afac77e4a980cb36f841c00ca31;
 domain=.twitter.com; path=/
 Vary: Accept-Encoding
 Connection: close
 
 Failed to validate oauth signature and token
 
 Any idea?
 
 Regards,
 Herman.
 
 -- 
 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] How does one know when a user revoked an app?

2010-09-05 Thread StuFF mc
I couldn't find some callback but I obviously need to know when a
user revoked my app. Or maybe I'm doing something wrong. Probably.
Here's the idea:

When a user accepted (we're speaking OAuth obviously) the app, I save
his screen_name.

Based on that, I auto log him to twitter the next time he logs on the website.

If I don't have a screen_name, I will display a sign in with twitter
badge, instead of saying @name is connected, but if a user revoke, I
still think I'm connected/accepted.

Cheers.

-- 
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] How does one know when a user revoked an app?

2010-09-05 Thread Tom van der Woerdt
You don't. All you can do is make an API request to verify_credentials and see 
if there is an error or not.

Tom


On 5 sep. 2010, at 12:26, StuFF mc m...@stuffmc.com wrote:

 I couldn't find some callback but I obviously need to know when a
 user revoked my app. Or maybe I'm doing something wrong. Probably.
 Here's the idea:
 
 When a user accepted (we're speaking OAuth obviously) the app, I save
 his screen_name.
 
 Based on that, I auto log him to twitter the next time he logs on the website.
 
 If I don't have a screen_name, I will display a sign in with twitter
 badge, instead of saying @name is connected, but if a user revoke, I
 still think I'm connected/accepted.
 
 Cheers.
 
 -- 
 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-05 Thread Rodrigo Berlinck
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] How does one know when a user revoked an app?

2010-09-05 Thread Tim Haines
Hi,

You want to save their ID rather than their screen name, as screen names
change often.

And as Tom hinted at, there's no callback.  You can either call
verify_credentials the first time they show up, or wait till you attempt to
make another call on their behalf and handle the failure due to incorrect
credentials.

Tim.


On Sun, Sep 5, 2010 at 7:26 PM, StuFF mc m...@stuffmc.com wrote:

 I couldn't find some callback but I obviously need to know when a
 user revoked my app. Or maybe I'm doing something wrong. Probably.
 Here's the idea:

 When a user accepted (we're speaking OAuth obviously) the app, I save
 his screen_name.

 Based on that, I auto log him to twitter the next time he logs on the
 website.

 If I don't have a screen_name, I will display a sign in with twitter
 badge, instead of saying @name is connected, but if a user revoke, I
 still think I'm connected/accepted.

 Cheers.

 --
 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 without using default browser

2010-09-05 Thread Andrea Stagi
Hi everybody,

I'm developing a twitter client using Tweepy..I have a question about
connection cause I've found only examples that show me how to connect
Api using default web browser e.g.

[.]

consumer_key = 
consumer_secret = XX
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
webbrowser.open(auth.get_authorization_url())

[.]

The client I'm developing is executable by terminal, so I think is
very bad making connections by using web browser instead of command
line .. Is there any alternative way??

Thanks in advance,

Best regards

-- 
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] friends_ids return screen_name instead of numerical ID

2010-09-05 Thread Cori
Is there some way to use a method like friends_ids to return screen
name instead of numerical ids?

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


Re: [twitter-dev] Re: About OAuth

2010-09-05 Thread Mike Southern
On 9/5/10 4:26 AM, Scott Wilcox at sc...@dor.ky wrote:

 I wrote a small PHP script which can be run CLI:
 
 Its at: http://dor.ky/entry/twitter-api-oauth-update-status
 
 If you need any help adapting that to your needs, just pop me an email off
 list and I'll be happy to help you.
 
 Scott.

Thanks Scott I appreciate you taking time to reply.

I'll grab the script and see how I can adapt it.

Mike


-- 
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: On the demise of basic authentication.

2010-09-05 Thread mikesouthern
Aha! Perfect!

Thankyou so much Marc.

I knew what I was looking for - the access token and secret. But on
Twitter I was looking at https://twitter.com/oauth_clients/details/x
- at that site I can only get consumer key/secret.

dev.twitter.com shows the button I was looking for and Bob is indeed
my Uncle.

Thanks again



On Sep 4, 11:40 pm, Marc Mims marc.m...@gmail.com wrote:
 * mikesouthern gb1...@cox.net [100904 19:56]:

  I'm not a developer. I just use perl scripts to automate my twitter
  feeds.

 For perl devs, the move to OAuth is really quite easy, especially for
 automated scripts.

 Register an application athttp://dev.twitter.com. Grab the consumer
 key and secret, and the access token and secret.

     use Net::Twitter;

     my $nt = Net::Twitter-new(
         traits = [qw/OAuth API::REST/],
         consumer_key        = $YOUR_CONSUMER_KEY,
         consumer_secret     = $YOUR_CONSUMER_SECRET,
         access_token        = $YOUR_ACCESS_TOKEN,
         access_token_secret = $YOUR_ACCESS_SECRET,
     );

     $nt-update(Bob's your uncle!);

 Need help?  Just drop by #net-twitter at irc.perl.org.

         -Marc

-- 
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 /friendships/create and how to create a friendship

2010-09-05 Thread Martyn
Can anyone show me how to add a friendship in PHP?  I have tried
several ways and followed much of the advice on this board without
luck.

The documentation is vague, it states Allows the authenticating users
to follow the user specified in the ID parameter.  Using Abraham
Williams libraries thats a snap (thanks Abraham!) and I have used it
for many applications over the last few months.  The new documentation
leaves a lot to be desired and I can't find any which way to make it
work:-

http://dev.twitter.com/doc/post/friendships/create

Here's just a few combinations I have tried:-

Take your pick from this block:-
$params = array('user_id' = $id, 'id' = $id, 'screen_name' =
$screen_name);
$params = array();
$params = array('user_id' = $id);
$params = array('id' = $id);


And comibine it with this block:-
$send = simplexml_load_string($twitter-OAuthRequest(http://
api.twitter.com/1/friendships/create/$screen_name.xml,
$params,'POST'));

$send = simplexml_load_string($twitter-OAuthRequest(http://
api.twitter.com/1/friendships/create.xml?id=$iduser_id=
$idscreen_name=$accountname,$params,'POST'));

send = simplexml_load_string($twitter-OAuthRequest(http://
api.twitter.com/1/friendships/create/$id.xml,$params,'POST'));

and I have tried them all without any luck.  I have verified
screen_name and id's are correct.  Checked the API is up and working
via other calls (such as sending DM's).

I have been able to guess most of the parameters and how to use them
for read and write operations but this one has left me confused.  I
would really appreciate a hand.

Kind Regards,
Martyn

-- 
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] Definitions page?

2010-09-05 Thread Ian Henderson
Is their a definitions page for the various fields used by Twitter?

If there is - I can't find it :)

I need to have a precise definition of status_date and why it is
sometimes reported as blank

Many 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


[twitter-dev] Posting tweets from twitter to our apps

2010-09-05 Thread Joshua Partogi
Hi all,

I am interested to be able to integrate my apps with twitter. I intend to be
able to post tweets from twitter and directly display it in my apps, like
the twitter-facebook integration. Is there any API for that? I've tried
reading the twitter wiki with no luck. Thanks in advance for your help.

Kind regards,
Joshua.

-- 
http://twitter.com/scrum8

-- 
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: Where Is the oauth_verifier ?

2010-09-05 Thread @yegle
Me too.

On 9月5日, 上午6时34分, vanleurth vanleu...@gmail.com wrote:
 Hey all,

 I'm new to twitter development and am trying to get started.  I'm
 using php

 My basic problem is when the user gets redirected back to my app after
 authorizing my app on twitter, I don't get back the oauth_verifier.  I
 do see the oauth_token in my GET parameter, but nothing else.

 Am I missing something?  If there was an error, where can I see
 that?

 thanks,

 Please help,

 V.

-- 
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: Where Is the oauth_verifier ?

2010-09-05 Thread @yegle
Some old consumer key/secret can return oauth_token and oauth_verifier
but new registered ones can only get oauth_token.

On 9月5日, 下午9时39分, @yegle cnye...@gmail.com wrote:
 Me too.

 On 9月5日, 上午6时34分, vanleurth vanleu...@gmail.com wrote:

  Hey all,

  I'm new to twitter development and am trying to get started.  I'm
  using php

  My basic problem is when the user gets redirected back to my app after
  authorizing my app on twitter, I don't get back the oauth_verifier.  I
  do see the oauth_token in my GET parameter, but nothing else.

  Am I missing something?  If there was an error, where can I see
  that?

  thanks,

  Please help,

  V.

-- 
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] Create a favorite

2010-09-05 Thread Dan
Im very much a newbie to PHP and the Twitter API.

Im trying to create a form button to set a tweet as a favorite.

I have OAuth working to post status updates and i've tried to amend
the status update code to set a tweet to be a favorite.

Wonder if anyone could help me:

$qtweet = A Twitter ID

if(isset($_POST['submit'])) {
$qtweet = $_REQUEST['fav'];
$connection-post('favorites/create', array('id' = $qtweet));
echo div style='padding-bottom: 5px; color: #0099FF;'Favorite
Created./div;
}

form id=fav method='post' action='index.php'
input style=width: 346px; name=fav id=fav /textarea
input type='submit' value='Tweet This!' name='submit' id='submit' /
/form

-- 
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: Where Is the oauth_verifier ?

2010-09-05 Thread @yegle
Maybe I've found the solution

http://code.google.com/p/twip/source/diff?spec=svn129r=129format=sidepath=/branches/yegle/include/OAuth.phpold_path=/branches/yegle/include/OAuth.phpold=110

Let me know if it helps :-)

On 9月5日, 下午10时12分, @yegle cnye...@gmail.com wrote:
 Some old consumer key/secret can return oauth_token and oauth_verifier
 but new registered ones can only get oauth_token.

 On 9月5日, 下午9时39分, @yegle cnye...@gmail.com wrote:

  Me too.

  On 9月5日, 上午6时34分, vanleurth vanleu...@gmail.com wrote:

   Hey all,

   I'm new to twitter development and am trying to get started.  I'm
   using php

   My basic problem is when the user gets redirected back to my app after
   authorizing my app on twitter, I don't get back the oauth_verifier.  I
   do see the oauth_token in my GET parameter, but nothing else.

   Am I missing something?  If there was an error, where can I see
   that?

   thanks,

   Please help,

   V.

-- 
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] Create a favorite

2010-09-05 Thread CWorster
Hi,

change this line:
 $connection-post('favorites/create', array('id' = $qtweet));
into:
$connection-post('favorites/create/'.$qtweet);

  $qtweet = $_REQUEST['fav'];
Make sure that $_REQUEST['fav'] is containing an existing ID. Check your Form:
 input style=width: 346px; name=fav id=fav /textarea
input type=text style=width: 346px; name=fav id=fav
value=?php echo $YOUR_ID; ? /

I would prefer an input type=hidden.

Hope it helps.

Christian

-- 
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] Where Is the oauth_verifier ?

2010-09-05 Thread Abraham Williams
If you don't set a custom oauth_callback when you get your request token
there will be no
oauth_verifier.

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 Sat, Sep 4, 2010 at 15:34, vanleurth vanleu...@gmail.com wrote:

 Hey all,

 I'm new to twitter development and am trying to get started.  I'm
 using php

 My basic problem is when the user gets redirected back to my app after
 authorizing my app on twitter, I don't get back the oauth_verifier.  I
 do see the oauth_token in my GET parameter, but nothing else.

 Am I missing something?  If there was an error, where can I see
 that?

 thanks,

 Please help,

 V.

 --
 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] Hi there

2010-09-05 Thread omri
I have a few questions regarding the streaming API :
How many maximum results I have in one response?
Is there a limit of requests?
Is it possible to make an empty query? - actually, download all the
latest tweets in the system

thanks,
Omri


-- 
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] Hi there

2010-09-05 Thread John Kalucki
These questions are all answered in the documentation:
http://dev.twitter.com/pages/streaming_api


On Sun, Sep 5, 2010 at 9:57 AM, omri omridek...@gmail.com wrote:

 I have a few questions regarding the streaming API :
 How many maximum results I have in one response?
 Is there a limit of requests?
 Is it possible to make an empty query? - actually, download all the
 latest tweets in the system

 thanks,
 Omri


 --
 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: Hi there

2010-09-05 Thread omri
thanks, I read the API
but one question is not resolved yet
in my response page, how many maximum tweets can I have?(let's assume,
I don't filter nothing)

thanks again


On 5 ספטמבר, 20:01, John Kalucki j...@twitter.com wrote:
 These questions are all answered in the 
 documentation:http://dev.twitter.com/pages/streaming_api



 On Sun, Sep 5, 2010 at 9:57 AM, omri omridek...@gmail.com wrote:
  I have a few questions regarding the streaming API :
  How many maximum results I have in one response?
  Is there a limit of requests?
  Is it possible to make an empty query? - actually, download all the
  latest tweets in the system

  thanks,
  Omri

  --
  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: Hi there

2010-09-05 Thread omri
thanks, I read the API
but one question is not resolved yet
in my response page, how many maximum tweets can I have?(let's assume,
I don't filter nothing)

thanks again


On 5 ספטמבר, 20:01, John Kalucki j...@twitter.com wrote:
 These questions are all answered in the 
 documentation:http://dev.twitter.com/pages/streaming_api



 On Sun, Sep 5, 2010 at 9:57 AM, omri omridek...@gmail.com wrote:
  I have a few questions regarding the streaming API :
  How many maximum results I have in one response?
  Is there a limit of requests?
  Is it possible to make an empty query? - actually, download all the
  latest tweets in the system

  thanks,
  Omri

  --
  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: Hi there

2010-09-05 Thread Tom van der Woerdt
Yeah, well, the idea of a stream is that it keeps going ;-)

Tom


On 9/5/10 7:52 PM, omri wrote:
 thanks, I read the API
 but one question is not resolved yet
 in my response page, how many maximum tweets can I have?(let's assume,
 I don't filter nothing)
 
 thanks again
 
 
 On 5 ספטמבר, 20:01, John Kalucki j...@twitter.com wrote:
 These questions are all answered in the 
 documentation:http://dev.twitter.com/pages/streaming_api



 On Sun, Sep 5, 2010 at 9:57 AM, omri omridek...@gmail.com wrote:
 I have a few questions regarding the streaming API :
 How many maximum results I have in one response?
 Is there a limit of requests?
 Is it possible to make an empty query? - actually, download all the
 latest tweets in the system

 thanks,
 Omri

 --
 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] twurl equivalent of curl's -D/--dump-header mode - or how do I get status response from Twitter?

2010-09-05 Thread TJ Luoma
I had been in the habit of using curl -D - to get the header
information from Twitter to tell me Status 200 (or HTTP/1.1 200)
before proceeding. It was the most reliable way that I knew of to make
sure that Twitter was functioning before parsing the data that I got
back from the API.

I can't figure out any way to get that information from twurl.

So… how do I get a HTTP status back from Twitter while using twurl?

TjL

-- 
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: Hi there

2010-09-05 Thread John Kalucki
If you don't specify a filter predicate, you'll get rejected. The most
tweets are available on the Firehose -- where you receive all public
statuses. The Firehose requires a special agreement with Twitter, and is
generally not available. The next most is Gardenhose, which is currently a
random sample of approximately 10% of the Firehose. You can apply for the
Gardenhose by emailing a...@twitter.com. Detail your organization and use
case.

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


On Sun, Sep 5, 2010 at 10:53 AM, Tom van der Woerdt i...@tvdw.eu wrote:

 Yeah, well, the idea of a stream is that it keeps going ;-)

 Tom


 On 9/5/10 7:52 PM, omri wrote:
  thanks, I read the API
  but one question is not resolved yet
  in my response page, how many maximum tweets can I have?(let's assume,
  I don't filter nothing)
 
  thanks again
 
 
  On 5 ספטמבר, 20:01, John Kalucki j...@twitter.com wrote:
  These questions are all answered in the documentation:
 http://dev.twitter.com/pages/streaming_api
 
 
 
  On Sun, Sep 5, 2010 at 9:57 AM, omri omridek...@gmail.com wrote:
  I have a few questions regarding the streaming API :
  How many maximum results I have in one response?
  Is there a limit of requests?
  Is it possible to make an empty query? - actually, download all the
  latest tweets in the system
 
  thanks,
  Omri
 
  --
  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