[twitter-dev] Re: Proof of identity rather than authorization

2009-03-22 Thread Shannon Whitley

Very timely.  I was thinking through this last night.  I may develop a
general application for this purpose.




On Mar 22, 3:17 am, GraemeF grae...@gmail.com wrote:
 Hi Elliott,

 This scenario worked well with basic authentication; you could just
 delegate the login to Twitter. Now I don't see a way to do it without
 requiring the user to create another account so that the token can be
 associated with it. I haven't got that far myself, but I think you're
 missing the bit where you store the token and reuse it the next time
 the user logs in to your app.

 In my case, I'm working on a web service to compliment Twitter and
 want desktop Twitter clients to be able to access it to store/retrieve
 supplementary information about a Twitter account. But if I can't
 prove that the user running the client owns the Twitter account then I
 can't see a way to avoid making them go through yet another
 registration process with my web service.

 I suppose an alternative would be to ask the desktop clients for their
 tokens and use that to call verify credentials? Feels very wrong, but
 I really want to avoid the complication of a duplicate set of accounts
 for Twitter users.

 Cheers,
 G.

 P.S. Sorry about my accidental post - my palm slipped onto my laptop
 trackpad while I was typing and it clicked send!

 On Mar 21, 4:16 pm, Elliott Kember elliott.kem...@gmail.com wrote:



  Hi Graeme,

  I think I'm doing a similar thing - I want to use Twitter as the
  registration and login process for my app. Right now, Twitter asks for
  approval every time the user logs into the account. Is there a way to
  say remember this application and then always accept auth requests
  from that application in future, like OpenID does?

  Long story short, I'm using OAuth like OpenID. Sorry to hijack your
  thread, but I think we're after the same thing.- Hide quoted text -

 - Show quoted text -


[twitter-dev] Re: 403 Forbidden: The server understood the request, but is refusing to fulfill it.

2009-03-22 Thread Abraham Williams
Thanks for finding that typo.

On Sun, Mar 22, 2009 at 10:09, ldnStreetLife londonstreetl...@gmail.comwrote:


 Okay I figured out what the problem was.  The example I was following
 had a bad API call:

 $to-OAuthRequest('https://twitter.com/status/update.xml', array
 ('status' = 'Test OAuth update. #testoauth',), 'POST');

 should be:

 $to-OAuthRequest('https://twitter.com/statuses/update.xml', array
 ('status' = 'Test OAuth update. #testoauth',), 'POST');

 I guess the fact that the response was telling me it is forbidden,
 coupled with the fact that my http://twitter.com/account/connections
 page is showing an error was throwing me off.  Doh!

 On Mar 21, 8:19 pm, ldnStreetLife londonstreetl...@gmail.com wrote:
  In PHP I've setup some test scripts following the exact example found
  herehttps://docs.google.com/View?docID=dcf2dzzs_2339fzbfsf4
 
  Everything looks good and it works to the point where can come back
  into my application from Twitter after authorizing access.  I can make
  the acount/verify_credentials.xml request and get a valid response
  with a full result set, but when I make the status/update.xml request
  I am returned 403 Forbidden: The server understood the request, but
  is refusing to fulfill it.
 
  I have setup my application to get read/write access.
 
  When I go tohttp://twitter.com/account/connectionsI get Something
  is technically wrong. Thanks for noticing—we're going to fix it up and
  have things back to normal soon. so it might just be something I have
  to wait out till it's fixed on the server, but I'm new to all this so
  maybe I'm missing something.
 
  Thanks - Rich




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison WI United States.


[twitter-dev] datatype for key and secret?

2009-03-22 Thread Chris Westbrook
What is a good mysql datatype to use to store the user token and secret?  I am 
new to mysql and am not that familiar with the different types.  Thanks.

[twitter-dev] OAuth Open Beta for new accounts?

2009-03-22 Thread Chad Etzel

Hello,

I have created a new account for a new app coming up (for which I
would like to implement OAuth), and I don't see the Connections tab
under my new account settings.  Are there some heuristics which
determine whether an account can participate in the OAuth Open Beta?

Thanks,
-Chad


[twitter-dev] Re: OAuth Open Beta for new accounts?

2009-03-22 Thread Chris Thomson
I believe the Connections tab only appears after you authorize an
application. You should be able to access it directly, though:
https://twitter.com/account/connections
Chris Thomson
http://twitter.com/chris24


On Sun, Mar 22, 2009 at 1:38 PM, Chad Etzel jazzyc...@gmail.com wrote:


 Hello,

 I have created a new account for a new app coming up (for which I
 would like to implement OAuth), and I don't see the Connections tab
 under my new account settings.  Are there some heuristics which
 determine whether an account can participate in the OAuth Open Beta?

 Thanks,
 -Chad



[twitter-dev] Re: datatype for key and secret?

2009-03-22 Thread Nial

I may be mistaken, but I'd imagine varchar is probably your best bet.

On Mar 22, 4:56 pm, Chris Westbrook westbch...@gmail.com wrote:
 What is a good mysql datatype to use to store the user token and secret?  I 
 am new to mysql and am not that familiar with the different types.  Thanks.


[twitter-dev] Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread rpsfan

Hi

I wondered if you need to get approval from Twitter to push
information into mutual users' Twitter feed?  Blip.fm allows options
for users to publish in their twitter feed what they are listening to
with a few short words and Tipjoy announces that X is sending X some
amount of currency.

Im not sure if approval is necessary or not; new to Twitter API
development.

Though on the Twitter API Wiki/ FAQ...I did see the below, but not
sure if that is the correct procedure or again if approval is
necessary?

From Twitter API Wiki/FAQ:
How do I get “from [MyApp]” appended to updates sent from my API
application?

Just fill out this handy form!  Note that you must have a Twitter
account and must be signed in to submit the form. We only approve
applications and sites that appear legitimate and in the best interest
of Twitter, Inc. and our community. We do not approve requests to link
to personal sites and weblogs, marketing materials, or anything that
rubs us the wrong way.

I filled the form, but overall not sure of the procedure?

Thanks


[twitter-dev] Re: Invalid oAuth Request

2009-03-22 Thread Jamie Rumbelow

Can anyone give me a hand?

Jamie Rumbelow Designer / Developer / Writer / Speaker
http://www.jamierumbelow.net | +44 (0)7956 363875 | jamie (at) jamierumbelow
(dot) net

-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of Cameron
Kaiser
Sent: 21 March 2009 20:27
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: Invalid oAuth Request


 I'm having a little trouble with oAuth - I'm getting an Invalid OAuth
 Request with a HTTP 401. I'm sure the signature is correct, and all
 I'm trying to do is get a request token. Has anyone had this problem
 before and if so how did you fix it?

Code and/or output is always helpful.

-- 
 personal: http://www.cameronkaiser.com/
--
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
ckai...@floodgap.com
-- If there was a hole, I would jump into it. -- Gackt Camui
--
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.238 / Virus Database: 270.11.20/2013 - Release Date: 03/20/09
19:01:00



[twitter-dev] A Twitter Query Language (TQL) ?

2009-03-22 Thread Zac Bowling

I would love it if Twitter would develop an equivalent to Facebook's
FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
engine data storage).

Basically an abstracted SQL-like query engine for doing queries and
getting back data the data you want using virtual tables of different
data twitter serves up.

You could do something basic like:

SELECT StatusID, UserID, Text FROM StatusUpdates as S
WHERE
   S.UserID in (SELECT UserID FROM SocialGraph WHERE FollowerUseringID
= MYUSERID) and
   S.StatusID  LASTID
ORDER BY S.StatusID DESC
LIMIT 200

to get a basic user's following timeline or whatever. From there you
can build on from that and get a bit more complex.

It could even build on from just query syntax to modify and destructive calls.

Maybe something like:
DELETE FROM StatusUpdates WHERE StatusID = 200102;

or:
INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID) VALUES
('@johnsmith hello',123601020,235133);

or:
UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID = 123601020;

You could do it where you do an HTTP get/post with a query like above
to twitter's rest api, and the results could come back as JSON or XML
or whatever.

Some concepts like this could be done in a local side wrapper (like
I've seen a SQL bridge for MSSQL for twitter on here a while back) but
it would be awesome if these were processed twitter server side. If
done right, it can save on overhead on both twitter and from the
client side.

Like in one case I have where I'm hitting the following timeline, I'm
missing something out of the user structure that you get back from
that, so I turn around and do another user call on user for each tweet
to get that data. Half the data I get back in both cases don't use on
both calls but it would be awesome to be able to get that data in one
call.

A lot to consider around optimization and limits and a bit of work to
build it but I think something like that would be really useful.


Zac


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread rpsfan

Thanks.

The app is similar to blip.fm where a user announces an action/
something they are enjoying/enjoyed and then broadcasts this
information via text  a link to their followers.  Like listening to
the new song check it out here.

What would you suggest for implementation in that regards?

thanks again

On Mar 22, 4:23 pm, Cameron Kaiser spec...@floodgap.com wrote:
  I wondered if you need to get approval from Twitter to push
  information into mutual users' Twitter feed?  Blip.fm allows options
  for users to publish in their twitter feed what they are listening to
  with a few short words and Tipjoy announces that X is sending X some
  amount of currency.

 Right. If your service has the credentials of the user in question and
 their permission, you post the update, and it appears on the friends'
 timelines of those who follow them. Similarly, services like Tipjoy send
 @ replies, which appear in the target's replies tab, although it sends those
 from its own account.

 You might want to be more specific about your application's purpose to
 discuss the best way to implement it.



  Though on the Twitter API Wiki/ FAQ...I did see the below, but not
  sure if that is the correct procedure or again if approval is
  necessary?

  From Twitter API Wiki/FAQ:
  How do I get _from [MyApp]_ appended to updates sent from my API
  application?

  Just fill out this handy form!  Note that you must have a Twitter
  account and must be signed in to submit the form. We only approve
  applications and sites that appear legitimate and in the best interest
  of Twitter, Inc. and our community. We do not approve requests to link
  to personal sites and weblogs, marketing materials, or anything that
  rubs us the wrong way.

  I filled the form, but overall not sure of the procedure?

 Wait for a response and a source key. It may take a few days depending on
 the backlog. They'll notify you when it's ready to go.

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- Please dispose of this message in the usual manner. -- Mission: Impossible 
 -


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread Cameron Kaiser

 The app is similar to blip.fm where a user announces an action/
 something they are enjoying/enjoyed and then broadcasts this
 information via text  a link to their followers.  Like listening to
 the new song check it out here.
 
 What would you suggest for implementation in that regards?

Get the user's permission (preferably using OAuth) for read and write
access, and then simply post updates to their timeline. That would be
the simplest approach, and only needs the permission of the posting user.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- The whippings shall continue until morale improves. 


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread rpsfan

Thanks ... overall Im a noob with this, but currently have implemented
OAuth - yet not sure where to go after the below

 OAuth is working via this process/steps (much like Tipjoy's process)
  I go to my test homepage --- click Twitter button ---   box
appears
saying you can publish this action to Twitter, click ok    from
here it goes to the OAuth screen where I enter my Twitter credentials
--- then takes me to page
I specified in the Twitter registration form asking to approve X
action via a button.

Im stuck at the button as for example when I hit it I have coded it so
box disappears and music starts playing, but have no idea what code or
how to publish into users' Twitter feed.

Appreciate the help/counsel!

cheers

On Mar 22, 4:40 pm, Cameron Kaiser spec...@floodgap.com wrote:
  The app is similar to blip.fm where a user announces an action/
  something they are enjoying/enjoyed and then broadcasts this
  information via text  a link to their followers.  Like listening to
  the new song check it out here.

  What would you suggest for implementation in that regards?

 Get the user's permission (preferably using OAuth) for read and write
 access, and then simply post updates to their timeline. That would be
 the simplest approach, and only needs the permission of the posting user.

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- The whippings shall continue until morale improves. 
 


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread Cameron Kaiser

 Thanks ... overall Im a noob with this, but currently have implemented
 OAuth - yet not sure where to go after the below
 
  OAuth is working via this process/steps (much like Tipjoy's process)
   I go to my test homepage --- click Twitter button ---   box
 appears
 saying you can publish this action to Twitter, click ok    from
 here it goes to the OAuth screen where I enter my Twitter credentials
 --- then takes me to page
 I specified in the Twitter registration form asking to approve X
 action via a button.
 
 Im stuck at the button as for example when I hit it I have coded it so
 box disappears and music starts playing, but have no idea what code or
 how to publish into users' Twitter feed.

At that point, assuming you have an access token now (you do, right?), then
you use the Twitter API to update the user's status, passing the access
token along with the request. This is the method you want:

http://apiwiki.twitter.com/REST+API+Documentation#statuses/update

but you should probably go through the page at large so you understand
how the API works.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- BOND THEME NOW PLAYING: Nobody Does It Better from The Spy Who Loved Me


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread rpsfan

Do you know or can you point to  an example PhP code where another has
implemented this into their service?

thank you for all your help!

On Mar 22, 4:55 pm, Cameron Kaiser spec...@floodgap.com wrote:
  Thanks ... overall Im a noob with this, but currently have implemented
  OAuth - yet not sure where to go after the below

   OAuth is working via this process/steps (much like Tipjoy's process)
    I go to my test homepage --- click Twitter button ---   box
  appears
  saying you can publish this action to Twitter, click ok    from
  here it goes to the OAuth screen where I enter my Twitter credentials
  --- then takes me to page
  I specified in the Twitter registration form asking to approve X
  action via a button.

  Im stuck at the button as for example when I hit it I have coded it so
  box disappears and music starts playing, but have no idea what code or
  how to publish into users' Twitter feed.

 At that point, assuming you have an access token now (you do, right?), then
 you use the Twitter API to update the user's status, passing the access
 token along with the request. This is the method you want:

        http://apiwiki.twitter.com/REST+API+Documentation#statuses/update

 but you should probably go through the page at large so you understand
 how the API works.

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- BOND THEME NOW PLAYING: Nobody Does It Better from The Spy Who Loved Me


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread Cameron Kaiser

 Do you know or can you point to  an example PhP code where another has
 implemented this into their service?
 
 thank you for all your help!

You may wish to start with

http://apiwiki.twitter.com/Open+source

http://apiwiki.twitter.com/Libraries

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- ASK ME ABOUT MY VOW OF SILENCE -


[twitter-dev] incorrect userIDs in search feed

2009-03-22 Thread Adrian

I've found that the user IDs in search feeds for any given user
mismatch with those in the normal twitter feeds.

Take for example @arikfr:
ID: 12069702
http://twitter.com/users/show/arikfr.xml

Now goto a search lookup:
http://search.twitter.com/search.json...@arikfr
or
http://search.twitter.com/search.json?q=to:arikfr

and the same user's ID is 3341



[twitter-dev] Re: incorrect userIDs in search feed

2009-03-22 Thread Chad Etzel

This is a known issue.  I'd search for the previous threads, but I'm
on my mobile atm.
-Chad

On Sun, Mar 22, 2009 at 5:14 PM, Adrian spiritpo...@gmail.com wrote:

 I've found that the user IDs in search feeds for any given user
 mismatch with those in the normal twitter feeds.

 Take for example @arikfr:
 ID: 12069702
 http://twitter.com/users/show/arikfr.xml

 Now goto a search lookup:
 http://search.twitter.com/search.json...@arikfr
 or
 http://search.twitter.com/search.json?q=to:arikfr

 and the same user's ID is 3341




[twitter-dev] Re: incorrect userIDs in search feed

2009-03-22 Thread Brian Gilham


I think that's a throwback to when Twitter Search was Summize and they 
had to come up with their own user IDs. I think they will be making them 
the same in the new API.


Adrian wrote:

I've found that the user IDs in search feeds for any given user
mismatch with those in the normal twitter feeds.

Take for example @arikfr:
ID: 12069702
http://twitter.com/users/show/arikfr.xml

Now goto a search lookup:
http://search.twitter.com/search.json...@arikfr
or
http://search.twitter.com/search.json?q=to:arikfr

and the same user's ID is 3341

   


[twitter-dev] Re: OAuth application icon reset?

2009-03-22 Thread Abraham Williams
When I visit: https://twitter.com/account/connections all of the icons are
default.

On Sun, Mar 22, 2009 at 16:33, Chad Etzel jazzyc...@gmail.com wrote:


 Slight bump here.

 Registered a couple new apps under 2 different accounts and neither
 were successful in uploading an app icon/image during the application
 process or trying to edit the settings after registration.

 Any news on this front?
 Thanks,
 -Chad

 On Thu, Mar 19, 2009 at 10:32 AM, Doug Williams d...@twitter.com wrote:
  Kosso,
  We're still seeing some issues, such as yours, with the lag mentioned two
  days ago.
 
  Doug Williams
  Twitter API Support
  http://twitter.com/dougw
 
 
  On Thu, Mar 19, 2009 at 1:31 AM, kosso kos...@gmail.com wrote:
 
  Hi,
 
  I have a Twitter OAuth application running successfully since
  yesterday and all was good.
 
  Today, the application icon I had uploaded in the settings page seems
  to have reverted back to the default 'cogs' icon.
 
  I this a known issue?
 
  I tried re-uploading to no avail.
 
  Many thanks for finally implementing OAuth! Great news!
 
  Regards,
  @kosso
 
 




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison Wisconsin United States.


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread rpsfan

thanks, Cameron!

This looks complete Chinese to me. Are you a PhP(e)r?

This is for a somewhat known Internet app(might have heard of it?) -
my partner/developer is on vacation and thus this web designer coder
has 70% of this done - stumped on the last 30%.  PUshing/publishing
data to Twitter.


On Mar 22, 5:19 pm, Cameron Kaiser spec...@floodgap.com wrote:
  Do you know or can you point to  an example PhP code where another has
  implemented this into their service?

  thank you for all your help!

 You may wish to start with

        http://apiwiki.twitter.com/Open+source

        http://apiwiki.twitter.com/Libraries

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- ASK ME ABOUT MY VOW OF SILENCE 
 -


[twitter-dev] Re: Get approval to publish links/info from web app (i.e. Blip.fm Tipjoy)

2009-03-22 Thread Cameron Kaiser

 thanks, Cameron!
 
 This looks complete Chinese to me. Are you a PhP(e)r?
 
 This is for a somewhat known Internet app(might have heard of it?) -
 my partner/developer is on vacation and thus this web designer coder
 has 70% of this done - stumped on the last 30%.  PUshing/publishing
 data to Twitter.

My preferred language starting with P ends in erl, but I'm sure the PHP
fans on the list can jump in at any time.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- The only thing to fear is fearlessness -- R. E. M. -


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-22 Thread Abraham Williams
I'm positive that a third party was providing a tql api for their database
of tweets and that it was announced on this list but now searching returns
nothing. Does anybody else remember this? Maybe it was a dream...

On Sun, Mar 22, 2009 at 15:28, Zac Bowling zbowl...@gmail.com wrote:


 I would love it if Twitter would develop an equivalent to Facebook's
 FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
 engine data storage).

 Basically an abstracted SQL-like query engine for doing queries and
 getting back data the data you want using virtual tables of different
 data twitter serves up.

 You could do something basic like:

 SELECT StatusID, UserID, Text FROM StatusUpdates as S
 WHERE
   S.UserID in (SELECT UserID FROM SocialGraph WHERE FollowerUseringID
 = MYUSERID) and
   S.StatusID  LASTID
 ORDER BY S.StatusID DESC
 LIMIT 200

 to get a basic user's following timeline or whatever. From there you
 can build on from that and get a bit more complex.

 It could even build on from just query syntax to modify and destructive
 calls.

 Maybe something like:
 DELETE FROM StatusUpdates WHERE StatusID = 200102;

 or:
 INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID) VALUES
 ('@johnsmith hello',123601020,235133);

 or:
 UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID = 123601020;

 You could do it where you do an HTTP get/post with a query like above
 to twitter's rest api, and the results could come back as JSON or XML
 or whatever.

 Some concepts like this could be done in a local side wrapper (like
 I've seen a SQL bridge for MSSQL for twitter on here a while back) but
 it would be awesome if these were processed twitter server side. If
 done right, it can save on overhead on both twitter and from the
 client side.

 Like in one case I have where I'm hitting the following timeline, I'm
 missing something out of the user structure that you get back from
 that, so I turn around and do another user call on user for each tweet
 to get that data. Half the data I get back in both cases don't use on
 both calls but it would be awesome to be able to get that data in one
 call.

 A lot to consider around optimization and limits and a bit of work to
 build it but I think something like that would be really useful.


 Zac




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison WI United States.


[twitter-dev] Re: Invalid oAuth Request

2009-03-22 Thread Abraham Williams
Just for kicks try a GET instead of a POST.

On Sun, Mar 22, 2009 at 15:18, Jamie Rumbelow ja...@jamierumbelow.netwrote:


 Can anyone give me a hand?

 Jamie Rumbelow Designer / Developer / Writer / Speaker
 http://www.jamierumbelow.net | +44 (0)7956 363875 | jamie (at)
 jamierumbelow
 (dot) net

 -Original Message-
 From: twitter-development-talk@googlegroups.com
 [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Cameron
 Kaiser
 Sent: 21 March 2009 20:27
 To: twitter-development-talk@googlegroups.com
 Subject: [twitter-dev] Re: Invalid oAuth Request


  I'm having a little trouble with oAuth - I'm getting an Invalid OAuth
  Request with a HTTP 401. I'm sure the signature is correct, and all
  I'm trying to do is get a request token. Has anyone had this problem
  before and if so how did you fix it?

 Code and/or output is always helpful.

 --
  personal:
 http://www.cameronkaiser.com/
 --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
 ckai...@floodgap.com
 -- If there was a hole, I would jump into it. -- Gackt Camui
 --
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.238 / Virus Database: 270.11.20/2013 - Release Date: 03/20/09
 19:01:00




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison Wisconsin United States.


[twitter-dev] Buggy user details?

2009-03-22 Thread Allen

Sometimes when I get information on users/show using this get

http://twitter.com/users/show/user.xml

it gives me a notification tag, and other times it doesn't.
Oftentimes the notification tag is wrong (I've posted this before).
Is there something really buggy going on here?


[twitter-dev] Re: Multiple OAuth AccessTokens for a single application

2009-03-22 Thread Abraham Williams
I submitted this to the issue queue since this is a big problem for people
with multiple computers:
http://code.google.com/p/twitter-api/issues/detail?id=372

On Sat, Mar 21, 2009 at 21:46, Chen Jie chenyue...@gmail.com wrote:


 I got the same problem, but it seems the access token is not invalid
 immediately, I am developing a web app, and I authorize my account
 access for my local development environment and deploy environment,
 the early access token will be invalid in server hours.

 Though this problem is not an issue for me, but it exactly impact
 desktop apps which can use several places and do not have user
 identification.

 --
 chenyuejie
 http://twittergadget.appspot.com/

 On Mar 22, 3:54 am, Joshua Perry j...@6bit.com wrote:
  I've been going through testing OAuth with my desktop application on my
  laptop and on my desktop computer.  I noticed that when I get an
  AccessToken with my laptop, my desktop then starts getting 401
  unauthorized errors and vice versa.  I'm not able to have the same
  application authorized on two computers simultaneously.
 
  Is this a bug or is there a way around this?  The only way I can think
  to get around the limitation is to somehow transfer the good AccessToken
  from one computer to any others that I want to use my application on.
  Perhaps some out-of-band mechanism that I provide on my own website to
  allow a user's application to get their currently active AccessToken,
  though I'm not sure this is a service that I'm prepared to support.
 
  I'm not sure how I expect Twitter to react to a second AccessToken
  request for an application when one already exists, but currently it
  seems to just replace the current one and only allows a single active
  AccessToken per application. This seems to only be a limiting factor for
  desktop applications.
 
  Perhaps storing and allowing up to 3 or 4 active AccessTokens per
  application would be sane.




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison Wisconsin United States.


[twitter-dev] Re: Proof of identity rather than authorization

2009-03-22 Thread Ed Finkler



On Mar 22, 6:17 am, GraemeF grae...@gmail.com wrote:
 Hi Elliott,

 This scenario worked well with basic authentication; you could just
 delegate the login to Twitter. Now I don't see a way to do it without
 requiring the user to create another account so that the token can be
 associated with it.

Well, Basic Auth still works *now*. I've personally advocated it not
go away ever. If you agree, you may want to make this preference
known.

--
Ed Finkler
http://funkatron.com
Twitter:@funkatron
AIM: funka7ron
ICQ: 3922133
XMPP:funkat...@gmail.com


[twitter-dev] Re: username case sensitivity

2009-03-22 Thread Abraham Williams
When interacting with the API it is best practice to use user ids since they
don't change.


An interesting result of case is:

https://twitter.com/OAuth
https://twitter.com/oauth

On Sat, Mar 21, 2009 at 17:22, GeoNomad pjenni...@gmail.com wrote:


 I guess I always assumed that the lowercase version of the username
 was totally equivalent to the MixedCase one.

 Until today.

 http://twitter.com/GeoNomad

 is not the same as

 http://twitter.com/geonomad

 Spot the difference?

 The RSS feed link only appears on the case matched page.

 So are there any other places (perhaps API related) where twitter is
 case sensitive?

 Curious minds want to know.

 Peter




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison Wisconsin United States.


[twitter-dev] Re: curl/php encoding

2009-03-22 Thread Abraham Williams
Viewing the http://playercontrol.slevolution.com/twitterupdates.php in
Firefox on OSX it looks fine. In Safari and Opera it is all messed up. It is
possible that by adding a html doctype on your output page the browser will
render it properly. Try looking at it in a few browsers and try adding a
doctype.

Abraham

On Sat, Mar 21, 2009 at 12:03, Hippyjim Starbrook 
hippyjim.starbr...@gmail.com wrote:


 yikes - hit send before adding thanks :D

 On 21 Mar, 16:27, Hippyjim Starbrook hippyjim.starbr...@gmail.com
 wrote:
  Ok, I use a prewritten Library I picked up somewhere for this one
  (altho I have the same problem if i just use PHP/cURL myself).
 
  So here's the main code:
 
  ?php
  include_once(twitter.lib.php);
  $twitterRoot = /LOCATION/OF/CACHE/FILE/;
 
  $user = ;
  $pw = ;
 
  $tweetFile = $twitterRoot.$user./tweet.ser;
 
  $twitter = new Twitter($user,$pw);
 
  $fileUpToDate = false;
  $tweets = ;
 
  if (file_exists($tweetFile))
  {
  if (filemtime($tweetFile)  strtotime(-10 Minutes))
  {
  $fileUpToDate = true;
  $tweets = unserialize(file_get_contents($tweetFile));
  }
 
  }
 
  if (!$fileUpToDate)
  {
 
  $tweets = json_decode($twitter-getUserTimeline(json,
  greenbrasil, 1), TRUE);
  if (!file_exists($twitterRoot.$user))
  {
  mkdir($twitterRoot.$user);
  }
  file_put_contents($tweetFile, serialize($tweets));
 
  }
 
  $outputString=$tweets[0][text].||.date(M-d-y H:i, strtotime
  ($tweets[0][created_at]));
 
   echo urldecode($outputString);
  ?
 
  and here's the library:
 
  ?php
  /*
   * Copyright (c) 2008 Justin Poliey jd...@njit.edu
   *
   * Permission is hereby granted, free of charge, to any person
   * obtaining a copy of this software and associated documentation
   * files (the Software), to deal in the Software without
   * restriction, including without limitation the rights to use,
   * copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the
   * Software is furnished to do so, subject to the following
   * conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
   * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   * OTHER DEALINGS IN THE SOFTWARE.
   */
 
  class Twitter {
  /* Username:password format string */
  private $credentials;
 
  /* Contains the last HTTP status code returned */
  private $http_status;
 
  /* Contains the last API call */
  private $last_api_call;
 
  /* Contains the application calling the API */
  private $application_source;
 
  /* Twitter class constructor */
  function Twitter($username, $password, $source=false) {
  $this-credentials = sprintf(%s:%s, $username,
 $password);
  $this-application_source = $source;
  }
 
  function getPublicTimeline($format, $since_id = 0) {
  $api_call = sprintf(
 http://twitter.com/statuses/public_timeline.
  %s, $format);
  if ($since_id  0) {
  $api_call .= sprintf(?since_id=%d, $since_id);
  }
  return $this-APICall($api_call);
  }
 
  function getFriendsTimeline($format, $id = NULL, $since = NULL) {
  if ($id != NULL) {
  $api_call = sprintf(
 http://twitter.com/statuses/friends_timeline/
  %s.%s, $id, $format);
  }
  else {
  $api_call = sprintf(
 http://twitter.com/statuses/friends_timeline.
  %s, $format);
  }
  if ($since != NULL) {
  $api_call .= sprintf(?since=%s,
 urlencode($since));
  }
  return $this-APICall($api_call, true);
  }
 
  function getUserTimeline($format, $id = NULL, $count = 20, $since
 =
  NULL) {
  if ($id != NULL) {
  $api_call = sprintf(
 http://twitter.com/statuses/user_timeline/%s.
  %s, $id, $format);
  }
  else {
  $api_call = sprintf(
 http://twitter.com/statuses/user_timeline.%s;,
  $format);
  }
  if ($count != 20) {
  $api_call .= sprintf(?count=%d, $count);
  }
  if ($since != NULL) {
  

[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-22 Thread Zac Bowling

There was the one I mentioned in my first email that was a bridge with
MSSQL (Tweet-SQL) but that is nothing more then a bunch of managed
(written in c#) stored procedure calls for MSSQL 2005 which maybe what
you are thinking of. That's not really anything close to what I'm
looking for.

It doesn't even have to be SQL like but just a some kind of structured
query language for twitter. That would be awesome.


Zac Bowling




On Sun, Mar 22, 2009 at 4:49 PM, Abraham Williams 4bra...@gmail.com wrote:
 I'm positive that a third party was providing a tql api for their database
 of tweets and that it was announced on this list but now searching returns
 nothing. Does anybody else remember this? Maybe it was a dream...

 On Sun, Mar 22, 2009 at 15:28, Zac Bowling zbowl...@gmail.com wrote:

 I would love it if Twitter would develop an equivalent to Facebook's
 FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
 engine data storage).

 Basically an abstracted SQL-like query engine for doing queries and
 getting back data the data you want using virtual tables of different
 data twitter serves up.

 You could do something basic like:

 SELECT StatusID, UserID, Text FROM StatusUpdates as S
 WHERE
   S.UserID in (SELECT UserID FROM SocialGraph WHERE FollowerUseringID
 = MYUSERID) and
   S.StatusID  LASTID
 ORDER BY S.StatusID DESC
 LIMIT 200

 to get a basic user's following timeline or whatever. From there you
 can build on from that and get a bit more complex.

 It could even build on from just query syntax to modify and destructive
 calls.

 Maybe something like:
 DELETE FROM StatusUpdates WHERE StatusID = 200102;

 or:
 INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID) VALUES
 ('@johnsmith hello',123601020,235133);

 or:
 UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID = 123601020;

 You could do it where you do an HTTP get/post with a query like above
 to twitter's rest api, and the results could come back as JSON or XML
 or whatever.

 Some concepts like this could be done in a local side wrapper (like
 I've seen a SQL bridge for MSSQL for twitter on here a while back) but
 it would be awesome if these were processed twitter server side. If
 done right, it can save on overhead on both twitter and from the
 client side.

 Like in one case I have where I'm hitting the following timeline, I'm
 missing something out of the user structure that you get back from
 that, so I turn around and do another user call on user for each tweet
 to get that data. Half the data I get back in both cases don't use on
 both calls but it would be awesome to be able to get that data in one
 call.

 A lot to consider around optimization and limits and a bit of work to
 build it but I think something like that would be really useful.


 Zac



 --
 Abraham Williams | http://the.hackerconundrum.com
 Web608 | Community Evangelist | http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison WI United States.


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-22 Thread Christian Heilmann


Yahoo's YQL supports open tables. Writing one for the Twitter API would 
mean you could easily do something like this.


http://developer.yahoo.com/yql/guide/yql-opentables-chapter.html



[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-22 Thread Cameron Kaiser

 There was the one I mentioned in my first email that was a bridge with
 MSSQL (Tweet-SQL) but that is nothing more then a bunch of managed
 (written in c#) stored procedure calls for MSSQL 2005 which maybe what
 you are thinking of. That's not really anything close to what I'm
 looking for.
 
 It doesn't even have to be SQL like but just a some kind of structured
 query language for twitter. That would be awesome.

select tweet from twitter where 1=1

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- BOND THEME NOW PLAYING: The Living Daylights -


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-22 Thread Lachlan Hardy

 Yahoo's YQL supports open tables. Writing one for the Twitter API would mean
 you could easily do something like this.

 http://developer.yahoo.com/yql/guide/yql-opentables-chapter.html

Some have already been written for Twitter:
http://github.com/spullara/yql-tables/tree/b4a9a8c6523300c436f32284792d28ce3a93688b/twitter


[twitter-dev] rate_limit_status called from .NET WebClient class

2009-03-22 Thread J.D.

I must be doing something wrong. If I call rate_limit_status with
CURL, I can see 2 different counts, depending on if I pass my
credentials or not. If I do the same thing from a .NET application, I
always get the non-authenticated (IP address limit) results.

I know setting the WebClient credentials this way works, as I call
other twitter API's after authenticating, plus I can call
verify_credentials this way and it works.

Can anyone see what I'm missing or screwing up?

  public void TestLimitInfo()
  {
 WebClient wc = new WebClient();
 wc.Credentials = new NetworkCredential( myuser, mypass );

 string data = wc.DownloadString( http://twitter.com/account/
rate_limit_status.json );
 MessageBox.Show( data );

  }  // GetLimitInfo

TIA,
J.D.


[twitter-dev] Re: 403 Forbidden: The server understood the request, but is refusing to fulfill it.

2009-03-22 Thread ldnStreetLife

No problem at all, thank you so much for the example code it's been
incredibly helpful!

On Mar 22, 12:51 pm, Abraham Williams 4bra...@gmail.com wrote:
 Thanks for finding that typo.

 On Sun, Mar 22, 2009 at 10:09, ldnStreetLife 
 londonstreetl...@gmail.comwrote:





  Okay I figured out what the problem was.  The example I was following
  had a bad API call:

  $to-OAuthRequest('https://twitter.com/status/update.xml', array
  ('status' = 'Test OAuth update. #testoauth',), 'POST');

  should be:

  $to-OAuthRequest('https://twitter.com/statuses/update.xml', array
  ('status' = 'Test OAuth update. #testoauth',), 'POST');

  I guess the fact that the response was telling me it is forbidden,
  coupled with the fact that myhttp://twitter.com/account/connections
  page is showing an error was throwing me off.  Doh!

  On Mar 21, 8:19 pm, ldnStreetLife londonstreetl...@gmail.com wrote:
   In PHP I've setup some test scripts following the exact example found
   herehttps://docs.google.com/View?docID=dcf2dzzs_2339fzbfsf4

   Everything looks good and it works to the point where can come back
   into my application from Twitter after authorizing access.  I can make
   the acount/verify_credentials.xml request and get a valid response
   with a full result set, but when I make the status/update.xml request
   I am returned 403 Forbidden: The server understood the request, but
   is refusing to fulfill it.

   I have setup my application to get read/write access.

   When I go tohttp://twitter.com/account/connectionsIget Something
   is technically wrong. Thanks for noticing—we're going to fix it up and
   have things back to normal soon. so it might just be something I have
   to wait out till it's fixed on the server, but I'm new to all this so
   maybe I'm missing something.

   Thanks - Rich

 --
 Abraham Williams |http://the.hackerconundrum.com
 Web608 | Community Evangelist |http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison WI United States.


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-22 Thread Zac Bowling

If it was built and twitter charged something similar to the rate that
Amazon's SimpleDB charges for processing power required to preform the
query, I would gladly pay.


Zac Bowling


On Sun, Mar 22, 2009 at 7:14 PM, Zac Bowling zbowl...@gmail.com wrote:
 There was the one I mentioned in my first email that was a bridge with
 MSSQL (Tweet-SQL) but that is nothing more then a bunch of managed
 (written in c#) stored procedure calls for MSSQL 2005 which maybe what
 you are thinking of. That's not really anything close to what I'm
 looking for.

 It doesn't even have to be SQL like but just a some kind of structured
 query language for twitter. That would be awesome.


 Zac Bowling




 On Sun, Mar 22, 2009 at 4:49 PM, Abraham Williams 4bra...@gmail.com wrote:
 I'm positive that a third party was providing a tql api for their database
 of tweets and that it was announced on this list but now searching returns
 nothing. Does anybody else remember this? Maybe it was a dream...

 On Sun, Mar 22, 2009 at 15:28, Zac Bowling zbowl...@gmail.com wrote:

 I would love it if Twitter would develop an equivalent to Facebook's
 FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
 engine data storage).

 Basically an abstracted SQL-like query engine for doing queries and
 getting back data the data you want using virtual tables of different
 data twitter serves up.

 You could do something basic like:

 SELECT StatusID, UserID, Text FROM StatusUpdates as S
 WHERE
   S.UserID in (SELECT UserID FROM SocialGraph WHERE FollowerUseringID
 = MYUSERID) and
   S.StatusID  LASTID
 ORDER BY S.StatusID DESC
 LIMIT 200

 to get a basic user's following timeline or whatever. From there you
 can build on from that and get a bit more complex.

 It could even build on from just query syntax to modify and destructive
 calls.

 Maybe something like:
 DELETE FROM StatusUpdates WHERE StatusID = 200102;

 or:
 INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID) VALUES
 ('@johnsmith hello',123601020,235133);

 or:
 UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID = 123601020;

 You could do it where you do an HTTP get/post with a query like above
 to twitter's rest api, and the results could come back as JSON or XML
 or whatever.

 Some concepts like this could be done in a local side wrapper (like
 I've seen a SQL bridge for MSSQL for twitter on here a while back) but
 it would be awesome if these were processed twitter server side. If
 done right, it can save on overhead on both twitter and from the
 client side.

 Like in one case I have where I'm hitting the following timeline, I'm
 missing something out of the user structure that you get back from
 that, so I turn around and do another user call on user for each tweet
 to get that data. Half the data I get back in both cases don't use on
 both calls but it would be awesome to be able to get that data in one
 call.

 A lot to consider around optimization and limits and a bit of work to
 build it but I think something like that would be really useful.


 Zac



 --
 Abraham Williams | http://the.hackerconundrum.com
 Web608 | Community Evangelist | http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison WI United States.



[twitter-dev] Re: in reply to metadata missing for manual replies

2009-03-22 Thread simX

 So your argument of mouse vs keyboard use doesn't even convince ME, an
 avid keyboard user.

I like it how I'm supposed to be the one that's an uninformed idiot,
except for the fact that I actually use the Twitter website daily, and
I can tell you that simply typing @name is faster than having to click
a reply swoosh, especially since the website's text field is
automatically focused when the page is loaded.

Like I said, I *use* the reply swooshes *myself* because I like to get
the accurate metadata, too!  What part of I understand the benefits,
I just want the benefits of the old way as well is hard to
understand?

 Instead you just want to add extra unnecessary metadata and then have
 programmers try to guess what the original intention was.

Thanks for completely misunderstanding what I'm trying to point out.
Programmers need not do guesswork at all.  Programmers can leave it up
to the user to decide whether a tweet is a genuine reply or not,
because the user is the best-equipped to figure this out.  Users can
use whether a reply was specifically linked by the twitterer or if it
was automatically linked by Twitter, and they can use the text of the
linked tweet to figure it out, too.

 And what AI are they going to use to determine whether this extra
 metadata or lack thereof means that this is an actualreply?  They're
 going to go whichever they prefer.

*facepalm*  There is no AI involved.  The point is to equip the user
with as much information as possible to determine the context of the
tweet.  Even approximate context is better than none.

 Meaning that they are going to get a different result for
 'conversations' depending on whether they use Summize (which is going
 to have to choose one method) or some other client.

Yes, that's right, depending on whether the client or the app in
particular is dependent upon extremely accurate twitter conversation
links (like, for example, conversation-trackers like the now-defunct
Quotably), or if they just want the user to be able to figure out more
information about the topic in question (such as most Twitter
clients).

The only different result that will occur is that those who wish to
use the approximate data will have longer conversations that may or
may not be accurate.  But they will be a complete superset of the
shorter, exact conversations that use the exact in_reply_to data.
Users can easily figure out when the approximate context is wrong in
the course of scanning such data, far faster than any AI that I'm
supposedly advocating for.

 I'm just not convinced by it.

Please provide a way to easily figure out which tweet this is in
response to, given the new policy of Twitter to not auto-link manual
replies: http://twitter.com/KuraFire/status/1176556069 .  Until you
do, I am unconvinced that *you* understand the complete exercise in
*utter* frustration the new feature has caused in trying to follow
some conversations.