[twitter-dev] Awesome

2010-09-15 Thread Jacky
Simply awesome...great effort !

-- 
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: New app for every Twitter account?

2010-08-11 Thread Jacky

No he means each source is a user and has its own account, and
authorizes the single app for separate access tokens..

However, my question is, is not having aliases a btter solution for
this? In other words, on user having several aliases, each alias being
permitted to get separate access tokens for the same app?

Regards,
Shob

On Aug 11, 1:58 pm, Skygazer marc.bouc...@gmail.com wrote:
 Hi Taylor,

 Ok, but how do you get an access token/access token secret for the
 other account without creating a new app?

 On Aug 11, 3:49 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:

  Hi Marc,

  In this case, instead of using the username/password of a different account
  while making a request, you would use an access token/access token secret
  belonging to a different account. You don't need to create separate
  applications for each account, but you need to authorize the application to
  act on behalf of each account.

  If you don't want to implement the OAuth flow to acquire access tokens in
  your application, you can use another application or library (such as my
  OAuth Dancer athttp://github.com/episod/oauth-dancer) to secure the access
  tokens, then port them over to your proper application.

  Taylor

  On Wed, Aug 11, 2010 at 12:37 PM, Skygazer marc.bouc...@gmail.com wrote:
   My company has several news sites and each has one or more Twitter
   accounts depending on the topic. I've created a new app using OAuth
   and PHP to post our news stories automatically as they are published.
   Previously with basic authentication I would just pass the username
   and password etc. to get the story posted. But now I'm wondering, do I
   need to create a new app for every Twitter account we have? Or can I
   post to our accounts with the one app I created with its keys and
   tokens? And if I can use just the one app, how do I post to the other
   accounts? The app was created on our primary Twitter account.

   Thanks
   Marc

   PS I already have the OAuth and PHP code working for our primary
   Twiter account.


[twitter-dev] Re: New app for every Twitter account?

2010-08-11 Thread Jacky
Sorry for the typos, here its again:
No, he means each source is a user and has its own account, and
authorizes the single app for separate access tokens..

However, my question is, is having aliases a better solution for this?
In other words, one user having several aliases, each alias being
 permitted to get separate access tokens for the same app?
Regards,
 Shob

On Aug 11, 2:04 pm, Jacky jaga...@gmail.com wrote:
 No he means each source is a user and has its own account, and
 authorizes the single app for separate access tokens..

 However, my question is, is not having aliases a btter solution for
 this? In other words, on user having several aliases, each alias being
 permitted to get separate access tokens for the same app?

 Regards,
 Shob

 On Aug 11, 1:58 pm, Skygazer marc.bouc...@gmail.com wrote:

  Hi Taylor,

  Ok, but how do you get an access token/access token secret for the
  other account without creating a new app?

  On Aug 11, 3:49 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:

   Hi Marc,

   In this case, instead of using the username/password of a different 
   account
   while making a request, you would use an access token/access token secret
   belonging to a different account. You don't need to create separate
   applications for each account, but you need to authorize the application 
   to
   act on behalf of each account.

   If you don't want to implement the OAuth flow to acquire access tokens in
   your application, you can use another application or library (such as my
   OAuth Dancer athttp://github.com/episod/oauth-dancer) to secure the access
   tokens, then port them over to your proper application.

   Taylor

   On Wed, Aug 11, 2010 at 12:37 PM, Skygazer marc.bouc...@gmail.com wrote:
My company has several news sites and each has one or more Twitter
accounts depending on the topic. I've created a new app using OAuth
and PHP to post our news stories automatically as they are published.
Previously with basic authentication I would just pass the username
and password etc. to get the story posted. But now I'm wondering, do I
need to create a new app for every Twitter account we have? Or can I
post to our accounts with the one app I created with its keys and
tokens? And if I can use just the one app, how do I post to the other
accounts? The app was created on our primary Twitter account.

Thanks
Marc

PS I already have the OAuth and PHP code working for our primary
Twiter account.


[twitter-dev] Re: New app for every Twitter account?

2010-08-11 Thread Jacky
No its not, and I wish it was allowed/supported...

On Aug 11, 2:09 pm, Skygazer marc.bouc...@gmail.com wrote:
 That makes sense to me but that's not supported at this time from my
 understanding.

 On Aug 11, 5:04 pm, Jacky jaga...@gmail.com wrote:

  No he means each source is a user and has its own account, and
  authorizes the single app for separate access tokens..

  However, my question is, is not having aliases a btter solution for
  this? In other words, on user having several aliases, each alias being
  permitted to get separate access tokens for the same app?

  Regards,
  Shob

  On Aug 11, 1:58 pm, Skygazer marc.bouc...@gmail.com wrote:

   Hi Taylor,

   Ok, but how do you get an access token/access token secret for the
   other account without creating a new app?

   On Aug 11, 3:49 pm, Taylor Singletary taylorsinglet...@twitter.com
   wrote:

Hi Marc,

In this case, instead of using the username/password of a different 
account
while making a request, you would use an access token/access token 
secret
belonging to a different account. You don't need to create separate
applications for each account, but you need to authorize the 
application to
act on behalf of each account.

If you don't want to implement the OAuth flow to acquire access tokens 
in
your application, you can use another application or library (such as my
OAuth Dancer athttp://github.com/episod/oauth-dancer) to secure the 
access
tokens, then port them over to your proper application.

Taylor

On Wed, Aug 11, 2010 at 12:37 PM, Skygazer marc.bouc...@gmail.com 
wrote:
 My company has several news sites and each has one or more Twitter
 accounts depending on the topic. I've created a new app using OAuth
 and PHP to post our news stories automatically as they are published.
 Previously with basic authentication I would just pass the username
 and password etc. to get the story posted. But now I'm wondering, do I
 need to create a new app for every Twitter account we have? Or can I
 post to our accounts with the one app I created with its keys and
 tokens? And if I can use just the one app, how do I post to the other
 accounts? The app was created on our primary Twitter account.

 Thanks
 Marc

 PS I already have the OAuth and PHP code working for our primary
 Twiter account.


[twitter-dev] Re: Using the Authorization header

2010-08-04 Thread Jacky

I am trying to get everybody who wants to test using this Mozilla REST
client, so we can have a common baseline, we can narrow source of
errors.-copy and past header here and POST

https://addons.mozilla.org/en-US/firefox/addon/9780/

Shob


On Aug 4, 9:19 am, Ben Jones benjamin.david.jo...@gmail.com wrote:
 Hi all,

 I'm currently writing my own OAuth lib for use with Twitter and have
 gotten stuck whilst using the
 Authorization HTTP header, rather than putting the OAuth parameters in
 the body.

 An example of a request that is failing is:

 POST /1/statuses/update.xml HTTP/1.1
 Authorization: OAuth realm=http://api.twitter.com/1/statuses/
 update.xml,
 oauth_consumer_key=x,
 oauth_token=x,
 oauth_nonce=x,
 oauth_timestamp=1280937572,
 oauth_signature_method=HMAC-SHA1,
 oauth_version=1.0,
 oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk=
 User-Agent: Java/1.6.0_07
 Host: api.twitter.com
 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
 Connection: keep-alive
 Content-type: application/x-www-form-urlencoded
 Content-Length: 53

 status=Test%25201%25202%25203%25204%25201280937572396

 ...(token etc blanked out, and new lines added in)

 This results in the server returning a 500 error and the Something is
 technically wrong. error page.
 I've talked to another developer who doesn't experience this. I've
 tried this with the parameters
 alphabetically ordered, unordered and with and without the 'realm'
 parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage.

 I don't have the same problem (as in the 500 error) when I put the
 OAuth parameters in the request
 body, but this often fails as well with 401 'Invalid signature'
 errors. What's strange is that putting the
 OAuth parameters into the form at Hueniverse's OAuth request signing
 page (http://tinyurl.com/y9bvjyt)
 shows them, including the signature, to be correct. If I retry the
 same request, it eventually works
 (sometimes it works the first time, just not consistently), so I don't
 think I'm calculating the signature
 incorrectly.

 Are the 401 errors occurring because Twitter is busy, or am I doing
 something wrong?

 Thanks in advance, any help would be greatly appreciated!
 ben


[twitter-dev] Re: Using the Authorization header

2010-08-04 Thread Jacky
just watch the timestamps...


On Aug 4, 12:58 pm, Jacky jaga...@gmail.com wrote:
 I am trying to get everybody who wants to test using this Mozilla REST
 client, so we can have a common baseline, we can narrow source of
 errors.-copy and past header here and POST

 https://addons.mozilla.org/en-US/firefox/addon/9780/

 Shob

 On Aug 4, 9:19 am, Ben Jones benjamin.david.jo...@gmail.com wrote:

  Hi all,

  I'm currently writing my own OAuth lib for use with Twitter and have
  gotten stuck whilst using the
  Authorization HTTP header, rather than putting the OAuth parameters in
  the body.

  An example of a request that is failing is:

  POST /1/statuses/update.xml HTTP/1.1
  Authorization: OAuth realm=http://api.twitter.com/1/statuses/
  update.xml,
  oauth_consumer_key=x,
  oauth_token=x,
  oauth_nonce=x,
  oauth_timestamp=1280937572,
  oauth_signature_method=HMAC-SHA1,
  oauth_version=1.0,
  oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk=
  User-Agent: Java/1.6.0_07
  Host: api.twitter.com
  Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
  Connection: keep-alive
  Content-type: application/x-www-form-urlencoded
  Content-Length: 53

  status=Test%25201%25202%25203%25204%25201280937572396

  ...(token etc blanked out, and new lines added in)

  This results in the server returning a 500 error and the Something is
  technically wrong. error page.
  I've talked to another developer who doesn't experience this. I've
  tried this with the parameters
  alphabetically ordered, unordered and with and without the 'realm'
  parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage.

  I don't have the same problem (as in the 500 error) when I put the
  OAuth parameters in the request
  body, but this often fails as well with 401 'Invalid signature'
  errors. What's strange is that putting the
  OAuth parameters into the form at Hueniverse's OAuth request signing
  page (http://tinyurl.com/y9bvjyt)
  shows them, including the signature, to be correct. If I retry the
  same request, it eventually works
  (sometimes it works the first time, just not consistently), so I don't
  think I'm calculating the signature
  incorrectly.

  Are the 401 errors occurring because Twitter is busy, or am I doing
  something wrong?

  Thanks in advance, any help would be greatly appreciated!
  ben


[twitter-dev] Re: lets test OAuth POST using this client

2010-08-04 Thread Jacky
Works well...helps you crosscheck...and narrow your source of error

On Aug 2, 9:46 pm, Jacky jaga...@gmail.com wrote:
 Amy users using this REST client to test OAuth header

 https://addons.mozilla.org/en-US/firefox/addon/9780/

 so we can have a common base to check against


[twitter-dev] Re: request token/oauth token-alternate method

2010-08-04 Thread Jacky

Also,
OAuth
oauth_consumer_key=

instead of

Oauth
oauth_consumer_key=...

in the authorization header as per Taylor, thanks...





[twitter-dev] lets test OAuth POST using this client

2010-08-02 Thread Jacky
Amy users using this REST client to test OAuth header

https://addons.mozilla.org/en-US/firefox/addon/9780/

so we can have a common base to check against


[twitter-dev] Re: request token- REST client

2010-07-11 Thread Jacky

It might be a good idea to be able to use this REST client for all
commands as a test benchmark for Twitter API calls(just a thought)...
(I have not tested much on this yet, I am just looking at it)...

https://addons.mozilla.org/en-US/firefox/addon/9780/

Shob


On Jul 8, 1:22 pm, Jacky jaga...@gmail.com wrote:
 Instead I launched it through a browser and I am all ok.

 (P.S. Incidental, but,  on my previous post I made a typo in the post,
 i.e.,not the very first string, but the second string and it already
 has the Oauth in front already and that is the string)

 Thanks though,
 Regards,
 Shob

 On Jul 7, 8:07 am, Matt Harris thematthar...@twitter.com wrote:

  Hi Shob,

  We strongly recommend you use a library for handling OAuth with Twitter
  until you are comfortable with how OAuth works. For VB I know of at least
  one library called TwitterVB:http://twittervb.codeplex.com/

  This will do the OAuth heavy lifting for you so you can develop an
  application for use with Twitter quickly. If you then want to roll your own
  solution you could use the TwitterVB library to compare to the results you
  are getting from your function.

  Hope that helps,
  Matt

  On Tue, Jul 6, 2010 at 7:10 AM, Jacky jaga...@gmail.com wrote:

   Hullo,

   POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
   %2Frequest_tokenoauth_callback%3Doob%26oauth_consumer_key
   %3DhUMUUZO3Zx9zNzJ9DghcA%26oauth_nonce
   %3DDA39A3EE5E6B4B0D3255BFEF95601890AFD80709%26oauth_signature_method
   %3DHMAC-SHA1%26oauth_timestamp%3D1277424969%26oauth_version%3D1.0

   and

   Oauth oauth_callback=oob,
   oauth_consumer_key=hUMUUZO3Zx9zNzJ9DghcA,
   oauth_nonce=DA39A3EE5E6B4B0D3255BFEF95601890AFD80709,
   oauth_signature_method=HMAC-SHA1, oauth_timestamp=1277424969,
   oauth_version=1.0, oauth_signature=%2Ff8P1dS6QVQnYCIc10kD1%2Bm2DkI
   %3D

   using

    objhttp.Open POST, https://api.twitter.com/oauth/request_token;,
   False

    objhttp.setRequestHeader Content-type, application/x-www-form-
   urlencoded
        objhttp.setRequestHeader Authorization, strsend
   objhttp.send()

   Not working, how can I see the stream that is being loaded...or debug
   this...
   and strsend is Oauth  and appended by the very first string up on
   top in this email

   Cant see the problem...

   Please help, if you can see anything outright off or wrong...

   Regards,
   Shob

  --

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


[twitter-dev] Re: request token

2010-07-08 Thread Jacky
Hullo Matt,
 Thanks for the reply...
I'm too far down this road to take detours...I've got everything
working except the final step...everything else checks in well..
I'm just hung up on the objhttp load using vba, somehow the stream
loaded seems to fail the generated signature (signature has been
checked)...so just need to figure this...hopefully something good will
happen before Aug 16.

Thanks,
Regards,
Shob

On Jul 7, 8:07 am, Matt Harris thematthar...@twitter.com wrote:
 Hi Shob,

 We strongly recommend you use a library for handling OAuth with Twitter
 until you are comfortable with how OAuth works. For VB I know of at least
 one library called TwitterVB:http://twittervb.codeplex.com/

 This will do the OAuth heavy lifting for you so you can develop an
 application for use with Twitter quickly. If you then want to roll your own
 solution you could use the TwitterVB library to compare to the results you
 are getting from your function.

 Hope that helps,
 Matt



 On Tue, Jul 6, 2010 at 7:10 AM, Jacky jaga...@gmail.com wrote:

  Hullo,

  POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
  %2Frequest_tokenoauth_callback%3Doob%26oauth_consumer_key
  %3DhUMUUZO3Zx9zNzJ9DghcA%26oauth_nonce
  %3DDA39A3EE5E6B4B0D3255BFEF95601890AFD80709%26oauth_signature_method
  %3DHMAC-SHA1%26oauth_timestamp%3D1277424969%26oauth_version%3D1.0

  and

  Oauth oauth_callback=oob,
  oauth_consumer_key=hUMUUZO3Zx9zNzJ9DghcA,
  oauth_nonce=DA39A3EE5E6B4B0D3255BFEF95601890AFD80709,
  oauth_signature_method=HMAC-SHA1, oauth_timestamp=1277424969,
  oauth_version=1.0, oauth_signature=%2Ff8P1dS6QVQnYCIc10kD1%2Bm2DkI
  %3D

  using

   objhttp.Open POST, https://api.twitter.com/oauth/request_token;,
  False

   objhttp.setRequestHeader Content-type, application/x-www-form-
  urlencoded
       objhttp.setRequestHeader Authorization, strsend
  objhttp.send()

  Not working, how can I see the stream that is being loaded...or debug
  this...
  and strsend is Oauth  and appended by the very first string up on
  top in this email

  Cant see the problem...

  Please help, if you can see anything outright off or wrong...

  Regards,
  Shob

 --

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


[twitter-dev] Re: request token

2010-07-08 Thread Jacky

Instead I launched it through a browser and I am all ok.

(P.S. Incidental, but,  on my previous post I made a typo in the post,
i.e.,not the very first string, but the second string and it already
has the Oauth in front already and that is the string)

Thanks though,
Regards,
Shob


On Jul 7, 8:07 am, Matt Harris thematthar...@twitter.com wrote:
 Hi Shob,

 We strongly recommend you use a library for handling OAuth with Twitter
 until you are comfortable with how OAuth works. For VB I know of at least
 one library called TwitterVB:http://twittervb.codeplex.com/

 This will do the OAuth heavy lifting for you so you can develop an
 application for use with Twitter quickly. If you then want to roll your own
 solution you could use the TwitterVB library to compare to the results you
 are getting from your function.

 Hope that helps,
 Matt



 On Tue, Jul 6, 2010 at 7:10 AM, Jacky jaga...@gmail.com wrote:

  Hullo,

  POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
  %2Frequest_tokenoauth_callback%3Doob%26oauth_consumer_key
  %3DhUMUUZO3Zx9zNzJ9DghcA%26oauth_nonce
  %3DDA39A3EE5E6B4B0D3255BFEF95601890AFD80709%26oauth_signature_method
  %3DHMAC-SHA1%26oauth_timestamp%3D1277424969%26oauth_version%3D1.0

  and

  Oauth oauth_callback=oob,
  oauth_consumer_key=hUMUUZO3Zx9zNzJ9DghcA,
  oauth_nonce=DA39A3EE5E6B4B0D3255BFEF95601890AFD80709,
  oauth_signature_method=HMAC-SHA1, oauth_timestamp=1277424969,
  oauth_version=1.0, oauth_signature=%2Ff8P1dS6QVQnYCIc10kD1%2Bm2DkI
  %3D

  using

   objhttp.Open POST, https://api.twitter.com/oauth/request_token;,
  False

   objhttp.setRequestHeader Content-type, application/x-www-form-
  urlencoded
       objhttp.setRequestHeader Authorization, strsend
  objhttp.send()

  Not working, how can I see the stream that is being loaded...or debug
  this...
  and strsend is Oauth  and appended by the very first string up on
  top in this email

  Cant see the problem...

  Please help, if you can see anything outright off or wrong...

  Regards,
  Shob

 --

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