[twitter-dev] Re: Tweet button and iphone

2011-07-07 Thread anaj...@ibs.com.jo
Thanks for your reply Seth

Is it possible that your implementation doesn't support a popup from
Twitter?

I'm not sure,but since the popup do appear without any issues so I
think our implementation support popups without any issues,but the
cancel button within twitter sharebox doesn't work as it should be,it
doesn't return the user back to my page and instead it redirects the
user to twitter page,the problem is in the behavior of cancel button
and I don't know why it behaves like that.


I can reproduce the issue in kinda the same way but here on my PC,here
are the steps:

Let's open a page that has a tweet button,maybe like this one:

http://dev.twitter.com/pages/tweet_button?utm_source=twitterfeedutm_medium=twitter

good,now scroll down to section Positioning the count box

do you see the first tweet button on the left,the one that has a word
none on top of it? right-click on that button then choose Copy Link
Address [Note: I use Google Chrome],I did that already and here the
url:

https://twitter.com/share?original_referer=http%3A%2F%2Fdev.twitter.com%2Fpages%2Ftweet_button%3Futm_source%3Dtwitterfeed%26utm_medium%3Dtwittersource=tweetbuttontext=Tweet%20Button%20%7C%20dev.twitter.comurl=http%3A%2F%2Fdev.twitter.com%2Fpages%2Ftweet_button%3Futm_source%3Dtwitterfeed%26utm_medium%3Dtwitter


now paste the url in a new window/tab in your browser but first make
sure you're not already logged in twitter account,the login page will
appear and you can see the cancel button,click on cancel button,now it
should return the user back to that link and as you can see the link
has a querystring original_referer with the original url so the cancel
button SHOULD return back to that url,but you will notice that it
doesn't return the user back to that page and instead it redirects to
twitter homepage,that's exactly how the web container behave and this
is the issue with the cancel button,I hope I cleared my issue and my
steps are straightforward, I hope you have a solution for this.

On Jul 7, 2:50 am, Seth Bindernagel s...@twitter.com wrote:
 Hi Anajjar:

 Sorry we couldn't be more help.

 Is it possible that your implementation doesn't support a popup from
 Twitter? If so, there might be a solution that works, but we'd have to
 specifically diagnose why your app is not working. If I can find
 anything that might help your situation, I'll be sure to add it to this
 thread.

 Best wishes,

 Seth

 anaj...@ibs.com.jo wrote:
  Because of Lack of support by Twitter and we didn't face any such
  issues with Facebook,we had no choice but to remove twitter from all
  of our projects and use Facebook instead,Thanks to everyone who tried
  to help .

 --
 Seth Bindernagel | @binder
 https://twitter.com/intent/follow?screen_name=binder

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] How to get retweets of me

2011-07-07 Thread Colin Howe
Hello,

I've just come across the statuses/retweets_of_me part of the API.
However, that isn't as useful as I first thought. I'd like to get the
20 most recent retweets of me - ignoring when I posted the original
tweet. The statuses/retweets_of_me won't return a retweet of me if the
original tweet was created more than 20 tweets ago. Are there any
other ways to do this?


Cheers,
Colin

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] TwitterException{exceptionCode=[70971d2e-00069e41 70971d2e-00069df0], statusCode=-1, retryAfter=0, rateLimitStatus=null, version=2.2.2}

2011-07-07 Thread sush
Hi All,
Please help me out in figuring out the causes of this Exception. As
per my understandings (by reading the documentation and experimenting)
I believe the -1 status code is thrown when another stream is
connected with the same credentials. Are there any other scenarios
when this Exception occurs..


Thanks,
Sushant

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Trends Locations

2011-07-07 Thread xAbd0o
I want to know where can you request an additional location for
trends?

Thank you :)

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] What is the best strategy to get this volume of data?

2011-07-07 Thread Taylor Singletary
What kinds of queries are you wanting to send -- search queries? Are they
different queries or are you repeating the same queries over and over? Do
you display the results on a website? In what other ways is the data used?
Who are your users and how does this service their needs?

There are likely alternate implementation options that won't necessitate you
having to make 100 queries every minute.

@episod http://twitter.com/intent/user?screen_name=episod - Taylor
Singletary


On Wed, Jul 6, 2011 at 10:22 PM, Ben Flux b...@trafficjunction.co.uk wrote:

 I want to send 100 queries to Twitter every minute via my server
 application and would like to know if there is a method that will
 allow me to do this?

 --
 Twitter developer documentation and resources: https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk


-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Any idea to minimize my request number?

2011-07-07 Thread Jean-Yves Kiger
Hi everyone,

Here is my project:
I would like to make a java programm wich would store as many tweets
as possible about one subject using the search API.  And once it is
done, i would like to get basic informations about their posters, such
as their number of followers, number of tweets and so on. But for that
purpose i will have to make one request like that

http://api.twitter.com/1/users/show.json?screen_name=SCREEN_NAME_STR

for each individual poster, wich will surely reaches the rate
limitation before i could store all the informations i want.
I dont find these informations in the HTML code of the homepage of
each users, so i think i will have to get them through the REST API.

Do you have any idea to get the informations i want to get without
overflow the limitation?

Thanks for reading, and pardon my english.

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Re: http://groups.google.com/group/twitter-development-talk

2011-07-07 Thread Paul Shriner
Header based authentication... do you mean setting method=Post?

When I did that, I got a Bad request and that I needed to make the request
via GET

{error:This method requires a
GET.,request:\/1\/statuses\/user_timeline.json}

I am using Shannon Whitley oAuth lib that he wrote, but have been toying
with using Hammock for our codebase.

Please explain thanks!

Paul

On Wed, Jul 6, 2011 at 8:25 PM, Georgooty varghese georgo...@gmail.comwrote:


 Hi,

 Use header based authentication..


 Regards,
 George


 On Wed, Jul 6, 2011 at 11:35 PM, Paul Shriner p...@audiencepoint.comwrote:

 Matt, I am having the same problem and ti started right about the same
 time as this post. Here are the details:

 Here are the response headers
 

 Status: 401 Unauthorized
 X-Transaction: 1309969076-98811-26180
 X-RateLimit-Limit: 350
 X-Frame-Options: SAMEORIGIN
 X-RateLimit-Remaining: 348
 X-Runtime: 0.02492
 Pragma: no-cache
 X-Access-Level: read-write
 X-RateLimit-Class: api_identified
 X-Revision: DEV
 X-MID: 4ea2b57c4cf85a22ee50fa2a7c5674aa26844059
 X-RateLimit-Reset: 1309972621
 Content-Length: 372
 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
 check=0
 Content-Type: application/json; charset=utf-8
 Date: Wed, 06 Jul 2011 16:17:57 GMT
 Expires: Tue, 31 Mar 1981 05:00:00 GMT
 Last-Modified: Wed, 06 Jul 2011 16:17:57 GMT
 Set-Cookie: k=204.251.185.1.1309969076964694; path=/; expires=Wed, 13-
 Jul-11 16:17:56 GMT;
 domain=.twitter.com,guest_id=v1%3A130996907700036484;
 domain=.twitter.com; path=/; expires=Sat, 06 Jul 2013 04:17:57
 GMT,lang=en;

 path=/,_twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCBTTPQAxAToHaWQiJWMxYWYyYTAzM2JlMjM3%250AYThjNmE1ZTViZTAyMGZlMTE4IgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy

 %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--13e6aa6dc4f9fb55afa9c2212509c53e04554bb6;
 domain=.twitter.com; path=/; HttpOnly
 Server: hi
 WWW-Authenticate: OAuth realm=http://api.twitter.com;
 Vary: Accept-Encoding
 Connection: close

 Here are the contents of the message:

 hash
 errorThis method requires authentication./error
 -
 request
 /1/statuses/user_timeline.xml?

 count=100oauth_consumer_key=4vqfXySDSPUncNbSQdrhnwoauth_nonce=2886488oauth_signature_method=HMAC-
 SHA1oauth_timestamp=1309974284oauth_token=190741720-

 EzxXr983TNYs28xhdd3tG610rtnQPxiy5LpeOLwwoauth_version=1.0user_id=573027936oauth_signature=LnYtMOdMopPYtaNMCfl9E
 +unjcA=
 /request
 /hash


 No idea on where to start on this.
 On Jun 23, 5:24 pm, Matt Harris thematthar...@twitter.com wrote:
  Hi dalvir,
 
  The REST API lives on the domain api.twitter.com not twitter.com. The
  request you are making should be made to:
 http://api.twitter.com/1/statuses/user_timeline.json
 
  To understand the reason for the error you will need to inspect the
 response
  that comes back from the API. We put more details about errors in the
  response body to help you identify what you need to do in your code.
 
  Best,
  @themattharris 
 https://twitter.com/intent/follow?screen_name=themattharris
  Developer Advocate, Twitter
 
 
 
 
 
 
 
  On Thu, Jun 23, 2011 at 12:32 AM, dalvir sainidal...@gmail.com wrote:
   I am  using the following code. This was working fine.
oAuthTwitter oAuth = new oAuthTwitter();
  oAuth.Token = Token;
  oAuth.TokenSecret = secrentoken;
  TwitterToken objtwitter = new
   TwitterToken();
 
   oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, http://twitter.com/
   statuses/user_timeline.xml, null);//This line return the following
   401 error
   But Now it stoped to work. and returning the error
   The remote server returned an error: (401) Unauthorized.
 
   Why this error is coming?
 
   --
   Twitter developer documentation and resources:
 https://dev.twitter.com/doc
   API updates via Twitter:https://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  https://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  https://groups.google.com/forum/#!forum/twitter-development-talk

 --
 Twitter developer documentation and resources:
 https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk


  --
 Twitter developer documentation and resources: https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk




-- 
AudiencePoint - Because Timing Matters
p...@audiencepoint.com
425-679-4830
http://www.audiencepoint.com

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi

[twitter-dev] Re: http://groups.google.com/group/twitter-development-talk

2011-07-07 Thread Paul Shriner
Apparently that was it.

On Jul 6, 8:25 pm, Georgooty varghese georgo...@gmail.com wrote:
 Hi,

 Use header based authentication..

 Regards,
 George

 On Wed, Jul 6, 2011 at 11:35 PM, Paul Shriner p...@audiencepoint.comwrote:







  Matt, I am having the same problem and ti started right about the same
  time as this post. Here are the details:

  Here are the response headers
  

  Status: 401 Unauthorized
  X-Transaction: 1309969076-98811-26180
  X-RateLimit-Limit: 350
  X-Frame-Options: SAMEORIGIN
  X-RateLimit-Remaining: 348
  X-Runtime: 0.02492
  Pragma: no-cache
  X-Access-Level: read-write
  X-RateLimit-Class: api_identified
  X-Revision: DEV
  X-MID: 4ea2b57c4cf85a22ee50fa2a7c5674aa26844059
  X-RateLimit-Reset: 1309972621
  Content-Length: 372
  Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
  check=0
  Content-Type: application/json; charset=utf-8
  Date: Wed, 06 Jul 2011 16:17:57 GMT
  Expires: Tue, 31 Mar 1981 05:00:00 GMT
  Last-Modified: Wed, 06 Jul 2011 16:17:57 GMT
  Set-Cookie: k=204.251.185.1.1309969076964694; path=/; expires=Wed, 13-
  Jul-11 16:17:56 GMT;
  domain=.twitter.com,guest_id=v1%3A130996907700036484;
  domain=.twitter.com; path=/; expires=Sat, 06 Jul 2013 04:17:57
  GMT,lang=en;

  path=/,_twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCBTTPQAxAToHaWQiJWMxYWYyYTAzM2JlMjM3%250AYThjNmE1ZTViZTAyMGZlMTE4IgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy

  %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--13e6aa6dc4f9fb55afa9c2212509c53e04554bb6;
  domain=.twitter.com; path=/; HttpOnly
  Server: hi
  WWW-Authenticate: OAuth realm=http://api.twitter.com;
  Vary: Accept-Encoding
  Connection: close

  Here are the contents of the message:

  hash
  errorThis method requires authentication./error
  -
  request
  /1/statuses/user_timeline.xml?

  count=100oauth_consumer_key=4vqfXySDSPUncNbSQdrhnwoauth_nonce=2886488oauth_signature_method=HMAC-
  SHA1oauth_timestamp=1309974284oauth_token=190741720-

  EzxXr983TNYs28xhdd3tG610rtnQPxiy5LpeOLwwoauth_version=1.0user_id=573027936oauth_signature=LnYtMOdMopPYtaNMCfl9E
  +unjcA=
  /request
  /hash

  No idea on where to start on this.
  On Jun 23, 5:24 pm, Matt Harris thematthar...@twitter.com wrote:
   Hi dalvir,

   The REST API lives on the domain api.twitter.com not twitter.com. The
   request you are making should be made to:
      http://api.twitter.com/1/statuses/user_timeline.json

   To understand the reason for the error you will need to inspect the
  response
   that comes back from the API. We put more details about errors in the
   response body to help you identify what you need to do in your code.

   Best,
   @themattharris 
 https://twitter.com/intent/follow?screen_name=themattharris
   Developer Advocate, Twitter

   On Thu, Jun 23, 2011 at 12:32 AM, dalvir sainidal...@gmail.com wrote:
I am  using the following code. This was working fine.
 oAuthTwitter oAuth = new oAuthTwitter();
                               oAuth.Token = Token;
                               oAuth.TokenSecret = secrentoken;
                               TwitterToken objtwitter = new
TwitterToken();

oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, http://twitter.com/
statuses/user_timeline.xml, null);//This line return the following
401 error
But Now it stoped to work. and returning the error
The remote server returned an error: (401) Unauthorized.

Why this error is coming?

--
Twitter developer documentation and resources:
 https://dev.twitter.com/doc
API updates via Twitter:https://twitter.com/twitterapi
Issues/Enhancements Tracker:
   https://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
   https://groups.google.com/forum/#!forum/twitter-development-talk

  --
  Twitter developer documentation and resources:https://dev.twitter.com/doc
  API updates via Twitter:https://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] TwitterException{exceptionCode=[70971d2e-00069e41 70971d2e-00069df0], statusCode=-1, retryAfter=0, rateLimitStatus=null, version=2.2.2}

2011-07-07 Thread Yusuke Yamamoto
Hi,

It appears to be a Twitter4J specific issue.
Please post the question to the Twitter4J's list along with the full stacktrace.
http://twitter4j.org/en/index.html#mailingList

Best,
-- 
Yusuke Yamamoto
yus...@mac.com

this email is: [x] bloggable/tweetable [ ] private
follow me on : http://twitter.com/yusukeyamamoto
subscribe me at : http://samuraism.jp/

On Jul 7, 2011, at 14:56 , sush wrote:

 Hi All,
 Please help me out in figuring out the causes of this Exception. As
 per my understandings (by reading the documentation and experimenting)
 I believe the -1 status code is thrown when another stream is
 connected with the same credentials. Are there any other scenarios
 when this Exception occurs..
 
 
 Thanks,
 Sushant
 
 -- 
 Twitter developer documentation and resources: https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 https://groups.google.com/forum/#!forum/twitter-development-talk

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Bulk Direct Messages delete

2011-07-07 Thread oosswwaalldd
Hi guys,

I have an app that gets certain amount of DMs of my Local Traffic
Twitter account and post them for my followers, I decided to turn this
service off in some hours of the day and turn it back on on other
hours (automatically), this action acumulates a bunch of old direct
messages in my inbox because I have +14.000 followers. My question is:

is there any API method to delete/bulk detele/flush all my direct
messages in my Twitter inbox? even if the total amount is larger that
200 (max amount allowed by direct_messages/destroy/:id method)

I was reading the rate limit FAQs and they explain that deleting DMs
does not consume API hits but it does! each deleted DM consume a API
hit so if a I have more that 350 DMs in my Twitter inbox (which is my
case), deleting one by one is not an option for me.

I appreciate the help!

Thanks.

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Twitter Oauth deny access callback bug

2011-07-07 Thread ss_test
I have been using twitter oauth to get access token to use with my app
for a year now.

It seems that twitter has changed the flow when the user successfully
logs in and denies access to the app.

Here the user is presented three options.

You've denied APP access to interact with your account.
APP can not access your Twitter account.

1) Return to APP
2) Go to Twitter.
3) Go to the APP homepage

When I click on the first option twitter issues a callback

CALLBACK_URL?denied=a_valuedenied=a_value

the callback has two parameters with the same name and value ??

This seems to be a bug. We are passing the oauth_token (optional)
as a state parameter and this needs to be
passed back if the callback is implemented when the user denies app.

If this is not a bug please point us to the documentation on how to
interpret the
two parameters in the callback

Thanks


-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] access levels for my application is not the same as what the application is registered for

2011-07-07 Thread Amitabh Shukla
Hi,

I am writing a twitter based application called Yellolane and is still in
development. The application is registered to have read, write and direct
messages access. However, when the user is redirected to twitter to
authenticate, the access allowed shows only read and write permissions, with
DM being disallowed.
Please let me know if there is something I need to do as the application
developer to correct the anomaly. Please help me resolve the issue as my
application needs access to direct messages.

Regards,
Amitabh

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Telephone

2011-07-07 Thread j_...@live.nl
Well, I tried to set up ma number to ma twitter account, and I saw
that you guys have the option, Afghanistan but not the netherlands? I
dont get it they dont even have internet, I kniow that I ve bin there
Well, can you guys add the option THE NETHERLANDS (+31) to?

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] My app

2011-07-07 Thread somto udengwu
Guys I am building a mobile based messenger and I need it to integrate
to blackberry messenger,twitter,Gtalk,yahoo messenger
e.t.cplease can someone help me out

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] My app

2011-07-07 Thread Scott Wilcox
You need to be a lot more specific about what you're asking for help with.

We have no interest in helping you with the other listed services, only your 
interaction with the Twitter APIs.

On 7 Jul 2011, at 21:18, somto udengwu wrote:

 Guys I am building a mobile based messenger and I need it to integrate
 to blackberry messenger,twitter,Gtalk,yahoo messenger
 e.t.cplease can someone help me out

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Telephone

2011-07-07 Thread Scott Wilcox
Whereas I thought there used to be a short code for Holland, seems there no 
longer/wasn't:

https://support.twitter.com/articles/14226-how-to-find-your-twitter-short-code-or-long-code

Twitter rarely comments on expansion of products like this, so for the mean 
time you're out of luck.

On 7 Jul 2011, at 21:12, j_...@live.nl wrote:

 Well, I tried to set up ma number to ma twitter account, and I saw
 that you guys have the option, Afghanistan but not the netherlands? I
 dont get it they dont even have internet, I kniow that I ve bin there
 Well, can you guys add the option THE NETHERLANDS (+31) to?

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Telephone

2011-07-07 Thread Tom van der Woerdt
There has never been a short code for the NL: we had to send texts to 
the UK (+44) and weren't able to receive any texts. I'm surprised to see 
it gone though.


Tom


On 7/7/11 10:33 PM, Scott Wilcox wrote:

Whereas I thought there used to be a short code for Holland, seems there no 
longer/wasn't:

https://support.twitter.com/articles/14226-how-to-find-your-twitter-short-code-or-long-code

Twitter rarely comments on expansion of products like this, so for the mean 
time you're out of luck.

On 7 Jul 2011, at 21:12, j_...@live.nl wrote:


Well, I tried to set up ma number to ma twitter account, and I saw
that you guys have the option, Afghanistan but not the netherlands? I
dont get it they dont even have internet, I kniow that I ve bin there
Well, can you guys add the option THE NETHERLANDS (+31) to?

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580



--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Telephone

2011-07-07 Thread Scott Wilcox
That'll be why its not on that list then!

On 7 Jul 2011, at 21:48, Tom van der Woerdt wrote:

 There has never been a short code for the NL: we had to send texts to the UK 
 (+44) and weren't able to receive any texts. I'm surprised to see it gone 
 though.
 
 Tom
 
 
 On 7/7/11 10:33 PM, Scott Wilcox wrote:
 Whereas I thought there used to be a short code for Holland, seems there no 
 longer/wasn't:
 
 https://support.twitter.com/articles/14226-how-to-find-your-twitter-short-code-or-long-code
 
 Twitter rarely comments on expansion of products like this, so for the mean 
 time you're out of luck.
 
 On 7 Jul 2011, at 21:12, j_...@live.nl wrote:
 
 Well, I tried to set up ma number to ma twitter account, and I saw
 that you guys have the option, Afghanistan but not the netherlands? I
 dont get it they dont even have internet, I kniow that I ve bin there
 Well, can you guys add the option THE NETHERLANDS (+31) to?

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Any idea to minimize my request number?

2011-07-07 Thread Taylor Singletary
Hi,

You may find better results using the Streaming API instead of the Search
API: https://dev.twitter.com/pages/streaming_api

Also, if you did have to perform bulk lookups of multiple users, the
users/lookup API is superior in that you can perform 80-100 user lookups in
a single call: https://dev.twitter.com/doc/get/users/lookup

@episod http://twitter.com/intent/user?screen_name=episod - Taylor
Singletary


On Thu, Jul 7, 2011 at 8:25 AM, Jean-Yves Kiger jyki...@gmail.com wrote:

 Hi everyone,

 Here is my project:
 I would like to make a java programm wich would store as many tweets
 as possible about one subject using the search API.  And once it is
 done, i would like to get basic informations about their posters, such
 as their number of followers, number of tweets and so on. But for that
 purpose i will have to make one request like that

 http://api.twitter.com/1/users/show.json?screen_name=SCREEN_NAME_STR

 for each individual poster, wich will surely reaches the rate
 limitation before i could store all the informations i want.
 I dont find these informations in the HTML code of the homepage of
 each users, so i think i will have to get them through the REST API.

 Do you have any idea to get the informations i want to get without
 overflow the limitation?

 Thanks for reading, and pardon my english.

 --
 Twitter developer documentation and resources: https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk


-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: access levels for my application is not the same as what the application is registered for

2011-07-07 Thread oosswwaalldd
You must use /authorize method instead /authenticate, that worked for
me

On Jul 7, 3:30 pm, Amitabh Shukla amitabh.shu...@gmail.com wrote:
 Hi,

 I am writing a twitter based application called Yellolane and is still in
 development. The application is registered to have read, write and direct
 messages access. However, when the user is redirected to twitter to
 authenticate, the access allowed shows only read and write permissions, with
 DM being disallowed.
 Please let me know if there is something I need to do as the application
 developer to correct the anomaly. Please help me resolve the issue as my
 application needs access to direct messages.

 Regards,
 Amitabh

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Bulk Direct Messages delete

2011-07-07 Thread oosswwaalldd
But what about the API consumption for deleting DMs even when
direct_messages/destroy/:id method says Rate Limited = False in the
docs?

any way to delete DMs in efficient way /

Thanks

On Jul 7, 2:55 pm, Scott Wilcox sc...@dor.ky wrote:
 There aren't currently any bulk delete methods.

 On 7 Jul 2011, at 19:50, oosswwaalldd wrote:









  Hi guys,

  I have an app that gets certain amount of DMs of my Local Traffic
  Twitter account and post them for my followers, I decided to turn this
  service off in some hours of the day and turn it back on on other
  hours (automatically), this action acumulates a bunch of old direct
  messages in my inbox because I have +14.000 followers. My question is:

  is there any API method to delete/bulk detele/flush all my direct
  messages in my Twitter inbox? even if the total amount is larger that
  200 (max amount allowed by direct_messages/destroy/:id method)

  I was reading the rate limit FAQs and they explain that deleting DMs
  does not consume API hits but it does! each deleted DM consume a API
  hit so if a I have more that 350 DMs in my Twitter inbox (which is my
  case), deleting one by one is not an option for me.

 --
 Scott Wilcox

 @dordotky | sc...@dor.ky |http://dor.ky
 +44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Bulk Direct Messages delete

2011-07-07 Thread Scott Wilcox
Are you using POST or DELETE?

On 7 Jul 2011, at 22:35, oosswwaalldd wrote:

 But what about the API consumption for deleting DMs even when
 direct_messages/destroy/:id method says Rate Limited = False in the
 docs?
 
 any way to delete DMs in efficient way /
 
 Thanks
 
 On Jul 7, 2:55 pm, Scott Wilcox sc...@dor.ky wrote:
 There aren't currently any bulk delete methods.
 
 On 7 Jul 2011, at 19:50, oosswwaalldd wrote:
 
 
 
 
 
 
 
 
 
 Hi guys,
 
 I have an app that gets certain amount of DMs of my Local Traffic
 Twitter account and post them for my followers, I decided to turn this
 service off in some hours of the day and turn it back on on other
 hours (automatically), this action acumulates a bunch of old direct
 messages in my inbox because I have +14.000 followers. My question is:
 
 is there any API method to delete/bulk detele/flush all my direct
 messages in my Twitter inbox? even if the total amount is larger that
 200 (max amount allowed by direct_messages/destroy/:id method)
 
 I was reading the rate limit FAQs and they explain that deleting DMs
 does not consume API hits but it does! each deleted DM consume a API
 hit so if a I have more that 350 DMs in my Twitter inbox (which is my
 case), deleting one by one is not an option for me

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Re: Tweet button and iphone

2011-07-07 Thread Ben Ward
Hi Anajjar,

On Jul 7, 2011, at 6:28 AM, anaj...@ibs.com.jo wrote:

 the login page will appear and you can see the cancel button,click on cancel 
 button,now it should return the user back to that link and as you can see the 
 link has a querystring original_referer with the original url so the cancel 
 button SHOULD return back to that url,but you will notice that it doesn't 
 return the user back to that page and instead it redirects to twitter homepage

Ah, you've found a bug. Thanks! I'll fix that. The cancel button there should 
behave the same way as cancel buttons elsewhere (e.g. in the after-Tweet 
screen) and redirect to the original referrer.

On Jul 2, 2011, anaj...@ibs.com.jo wrote:

 In Safari I don't have any issues,but I do have issues with tweet
 button within the container,once the login window of twitter appears
 and user clicks on cancel it doesn't return the user back to my
 page,instead it redirects the user to twitter homepage,Is there any
 solution for this?

For what it's worth, this is the full cascade of behaviours that Cancel buttons 
have within Web Intents:

1. If the intent is a pop-up window (e.g. if `window.opener` is available) then 
clicking a cancel button will close the window. On desktop, this closes the 
window as you'd expect. On mobile platforms such as the iPhone, this closes the 
page and flips the user back to the page that invoked the Intent.

2. If `window.opener` isn't available, then the page is assumed to have been 
navigated to conventionally. In this case, the destination of cancel links is 
(or should be) set with the following priority:

2a. To the original_referrer, if available and valid.
2b. If original_referrer is not set, or if the original_referrer is an invalid 
URL, or that URL falls foul of our known-malware-URL filter, then the cancel 
buttons will simply point to twitter.com.

Finally, note that if you “pop up” an intent within a WebView in a native app, 
that does not set `window.opener`, so the page will believe it's been invoked 
directly in a browser (because it has.) If you want to handle the close event, 
you'll need to watch the source URLs.

If it's possible to create a WebView on your platform of choice, and set a 
default window.opener *and* override window.close() with a call to native 
‘close the WebView’ code, then you may be able invoke the Intent in a WebView 
and have all the autoclose behaviour from the web work. I've never tried this 
though.

Ben
--
@benward
Twitter, Web Intents developer

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Re: Changed to authorizeURL; get the proper permission, but now get 401, 401 after one call

2011-07-07 Thread Matt Harris
Hey oosswwaalldd,

The code you pasted above is the example auth.php file which shows how to do
each form of OAuth with the Twitter API. The method it uses when performing
the OAuth flow depends on which option you choose from the page. If you use
any of the Sign in with Twitter links you won't be able to get the direct
message permission. Instead you need to use the Allow Application options.

In a full application you would reduce all of this code to just one of those
flows.
I've added an example to my library which shows a really cut down version of
the oauth authorize flow:

https://github.com/themattharris/tmhOAuth/blob/master/examples/oauth_flow.php

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Twitter



On Tue, Jul 5, 2011 at 1:18 PM, oosswwaalldd oosswwaal...@gmail.com wrote:

 Turns out I use themattharris lib to get the login credentials (token
 and token_secret) which I store on my db, and Abraham lib (yours) to
 interact with Twitter once I am authenticated. I know this is not you
 lib but Matt Harris's, but can you help me please to know where in the
 mattharris lib should I change this method? I think it would be in the
 line with the -- below. Because Twitter every two days (more than
 less) gives me this error when I try to get DMs with an authenticated
 user [error] - no permission to access to DMS (or some like that)
 when I check the users Token and Secret in my app (dev.twitter.com/
 apps) they are different than the ones stored on my db. I appreciate
 you help a lot.

 // start the OAuth dance
 } elseif ( isset($_REQUEST['signin']) || isset($_REQUEST['allow']) ) {
  $callback = isset($_REQUEST['oob']) ? 'oob' : $here;

  $code = $tmhOAuth-request('POST', $tmhOAuth-url('oauth/
 request_token', ''), array(
'oauth_callback' = $callback
  ));

  if ($code == 200) {
$_SESSION['oauth'] = $tmhOAuth-extract_params($tmhOAuth-
 response['response']);
$method = isset($_REQUEST['signin']) ? 'authenticate' :
 'authorize'; -- HERE SHOULD I WRITE $METHOD='authorize'; RIGHT?
$force  = isset($_REQUEST['force']) ? 'force_login=1' : '';
$forcewrite  = isset($_REQUEST['force_write']) ?
 'oauth_access_type=write' : '';
$forceread  = isset($_REQUEST['force_read']) ?
 'oauth_access_type=read' : '';
header(Location:  . $tmhOAuth-url(oauth/{$method}, '') .  ?
 oauth_token={$_SESSION['oauth']['oauth_token']}{$force}{$forcewrite}
 {$forceread});

  }



 On Jul 5, 3:55 pm, Abraham Williams 4bra...@gmail.com wrote:
  You don't need to change the TRUE to FALSE in twitteroauth.php you pass
  FALSE as the second parameter when you call the getAuthorizeURL method.
 This
  is only used when a (generally) unauthenticated user gets redirected to
  twitter.com with a request token to allow access to their account. For
 all
  existing users they will have to do this again before the access tokens
 will
  have DM access.
 
  In the example code this is done in line 22 of redirect.phphttps://
 github.com/abraham/twitteroauth/blob/master/redirect.php#L22
 
  Abraham
  -
  Abraham Williams | InboxQ http://inboxq.com/ | abrah.am
  @abraham https://twitter.com/intent/follow?screen_name=abraham |
  github.com/abraham | blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
 
 
 
 
 
 
  On Tue, Jul 5, 2011 at 14:58, oosswwaalldd oosswwaal...@gmail.com
 wrote:
   I am little bit confused, I understood that the problem was solved by
   changing to FALSE in this line
   function getAuthorizeURL($token, $sign_in_with_twitter = TRUE) {
   in twitteroauth.php, but I am reading from you that the change is not
   in this file.
 
   In my code the only call I have to authorize/authenticate is this
   (main file where I process the DMs, this file requires
   twitteroauth.php)
 
   /* Create a TwitterOauth object with consumer/user tokens. */
   $connection = new TwitterOAuth($consumer_key,$consumer_secret,
   $oauth_token,$oauth_token_secret);
 
   where am I supposed to change this FALSE?
 
   Thanks for the help
 
   On Jul 5, 12:45 pm, Abraham Williams 4bra...@gmail.com wrote:
You don't need to change the code in twitteroauth.php. You just use
$connection-getAuthorizeURL($token, false) to get the authorize URL
   instead
of the authenticate URL.
 
If you are having other issues it is likely unrelated to this change
 as
   the
only difference is sending users to
 api.twitter.com/oauth/authorizeinstead
of api.twitter.com/oauth/authenticate. If you can make one call then
 you
   are
likely either not properly saving the access token in sessions/db or
 you
   are
overwriting it with a new request token at some point.
 
Abraham
-
Abraham Williams | InboxQ http://inboxq.com/ | abrah.am
@abraham https://twitter.com/intent/follow?screen_name=abraham |
github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.
 
On Mon, Jul 4, 2011 at 19:59, 

[twitter-dev] Still experiencing Streaming API connection issues

2011-07-07 Thread Jonathan Strauss
Hey guys,

Per http://twitter.com/#!/twitterapi/status/89088788592214016, it
sounds like Streaming API issues are resolved. But our connection
attempts are still being rejected as they have been since a couple
hours ago with the following response:

html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/
titleError 401 UNAUTHORIZED/title
/head
body
h2HTTP ERROR: 401/h2
pProblem accessing /1/statuses/filter.json. Reason:
preUNAUTHORIZED/pre/p
hr /ismallPowered by Jetty:///small/i

Nothing has changed on our side. So are our credentials somehow
invalid now or are there still general issues?

Thanks,
-jonathan

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Still experiencing Streaming API connection issues

2011-07-07 Thread Nicholas Chase

Check your Access Tokens; mine have been spontaneously changing for weeks.

  Nick

On 7/7/2011 8:25 PM, Jonathan Strauss wrote:

Hey guys,

Per http://twitter.com/#!/twitterapi/status/89088788592214016, it
sounds like Streaming API issues are resolved. But our connection
attempts are still being rejected as they have been since a couple
hours ago with the following response:

html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/
titleError 401 UNAUTHORIZED/title
/head
body
h2HTTP ERROR: 401/h2
pProblem accessing /1/statuses/filter.json. Reason:
pre UNAUTHORIZED/pre/p
hr /ismallPowered by Jetty:///small/i

Nothing has changed on our side. So are our credentials somehow
invalid now or are there still general issues?

Thanks,
-jonathan



--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Still experiencing Streaming API connection issues

2011-07-07 Thread Jonathan Strauss
Or, someone mistakenly reset our password around the same time the
Streaming API went down :-/

Basic auth FTW!

Thanks for the help Nick and sorry for crying wolf.

On Jul 7, 5:39 pm, Nicholas Chase nch...@earthlink.net wrote:
 Check your Access Tokens; mine have been spontaneously changing for weeks.

   Nick

 On 7/7/2011 8:25 PM, Jonathan Strauss wrote:



  Hey guys,

  Perhttp://twitter.com/#!/twitterapi/status/89088788592214016, it
  sounds like Streaming API issues are resolved. But our connection
  attempts are still being rejected as they have been since a couple
  hours ago with the following response:

  html
  head
  meta http-equiv=Content-Type content=text/html;
  charset=ISO-8859-1/
  titleError 401 UNAUTHORIZED/title
  /head
  body
  h2HTTP ERROR: 401/h2
  pProblem accessing /1/statuses/filter.json. Reason:
  pre     UNAUTHORIZED/pre/p
  hr /ismallPowered by Jetty:///small/i

  Nothing has changed on our side. So are our credentials somehow
  invalid now or are there still general issues?

  Thanks,
  -jonathan

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Changed to authorizeURL; get the proper permission, but now get 401, 401 after one call

2011-07-07 Thread oosswwaalldd
Thanks! very helpful!

On Jul 7, 7:12 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey oosswwaalldd,

 The code you pasted above is the example auth.php file which shows how to do
 each form of OAuth with the Twitter API. The method it uses when performing
 the OAuth flow depends on which option you choose from the page. If you use
 any of the Sign in with Twitter links you won't be able to get the direct
 message permission. Instead you need to use the Allow Application options.

 In a full application you would reduce all of this code to just one of those
 flows.
 I've added an example to my library which shows a really cut down version of
 the oauth authorize flow:

 https://github.com/themattharris/tmhOAuth/blob/master/examples/oauth_...

 Best,
 @themattharris https://twitter.com/intent/follow?screen_name=themattharris
 Twitter







 On Tue, Jul 5, 2011 at 1:18 PM, oosswwaalldd oosswwaal...@gmail.com wrote:
  Turns out I use themattharris lib to get the login credentials (token
  and token_secret) which I store on my db, and Abraham lib (yours) to
  interact with Twitter once I am authenticated. I know this is not you
  lib but Matt Harris's, but can you help me please to know where in the
  mattharris lib should I change this method? I think it would be in the
  line with the -- below. Because Twitter every two days (more than
  less) gives me this error when I try to get DMs with an authenticated
  user [error] - no permission to access to DMS (or some like that)
  when I check the users Token and Secret in my app (dev.twitter.com/
  apps) they are different than the ones stored on my db. I appreciate
  you help a lot.

  // start the OAuth dance
  } elseif ( isset($_REQUEST['signin']) || isset($_REQUEST['allow']) ) {
   $callback = isset($_REQUEST['oob']) ? 'oob' : $here;

   $code = $tmhOAuth-request('POST', $tmhOAuth-url('oauth/
  request_token', ''), array(
     'oauth_callback' = $callback
   ));

   if ($code == 200) {
     $_SESSION['oauth'] = $tmhOAuth-extract_params($tmhOAuth-
  response['response']);
     $method = isset($_REQUEST['signin']) ? 'authenticate' :
  'authorize'; -- HERE SHOULD I WRITE $METHOD='authorize'; RIGHT?
     $force  = isset($_REQUEST['force']) ? 'force_login=1' : '';
     $forcewrite  = isset($_REQUEST['force_write']) ?
  'oauth_access_type=write' : '';
     $forceread  = isset($_REQUEST['force_read']) ?
  'oauth_access_type=read' : '';
     header(Location:  . $tmhOAuth-url(oauth/{$method}, '') .  ?
  oauth_token={$_SESSION['oauth']['oauth_token']}{$force}{$forcewrite}
  {$forceread});

   }

  On Jul 5, 3:55 pm, Abraham Williams 4bra...@gmail.com wrote:
   You don't need to change the TRUE to FALSE in twitteroauth.php you pass
   FALSE as the second parameter when you call the getAuthorizeURL method.
  This
   is only used when a (generally) unauthenticated user gets redirected to
   twitter.com with a request token to allow access to their account. For
  all
   existing users they will have to do this again before the access tokens
  will
   have DM access.

   In the example code this is done in line 22 of redirect.phphttps://
  github.com/abraham/twitteroauth/blob/master/redirect.php#L22

   Abraham
   -
   Abraham Williams | InboxQ http://inboxq.com/ | abrah.am
   @abraham https://twitter.com/intent/follow?screen_name=abraham |
   github.com/abraham | blog.abrah.am
   This email is: [ ] shareable [x] ask first [ ] private.

   On Tue, Jul 5, 2011 at 14:58, oosswwaalldd oosswwaal...@gmail.com
  wrote:
I am little bit confused, I understood that the problem was solved by
changing to FALSE in this line
function getAuthorizeURL($token, $sign_in_with_twitter = TRUE) {
in twitteroauth.php, but I am reading from you that the change is not
in this file.

In my code the only call I have to authorize/authenticate is this
(main file where I process the DMs, this file requires
twitteroauth.php)

/* Create a TwitterOauth object with consumer/user tokens. */
$connection = new TwitterOAuth($consumer_key,$consumer_secret,
$oauth_token,$oauth_token_secret);

where am I supposed to change this FALSE?

Thanks for the help

On Jul 5, 12:45 pm, Abraham Williams 4bra...@gmail.com wrote:
 You don't need to change the code in twitteroauth.php. You just use
 $connection-getAuthorizeURL($token, false) to get the authorize URL
instead
 of the authenticate URL.

 If you are having other issues it is likely unrelated to this change
  as
the
 only difference is sending users to
  api.twitter.com/oauth/authorizeinstead
 of api.twitter.com/oauth/authenticate. If you can make one call then
  you
are
 likely either not properly saving the access token in sessions/db or
  you
are
 overwriting it with a new request token at some point.

 Abraham
 -
 Abraham Williams | InboxQ http://inboxq.com/ | abrah.am
 @abraham 

[twitter-dev] Re: Bulk Direct Messages delete

2011-07-07 Thread oosswwaalldd
Scott,

I am using this method described in Abraham twitteroauth

/* Create a TwitterOauth object with consumer/user tokens. */
$connection = new TwitterOAuth($consumer_key,$consumer_secret,
$oauth_token,$oauth_token_secret);

/* delete DM with id=$dm_id */
$method = direct_messages/destroy/$dm_id;
$connection-delete($method);

it is DELETE, I guess, is there any way of delete them without
consuming API? Twitter says Rate Limited = FALSE

thanks in advance!

On Jul 7, 5:38 pm, Scott Wilcox sc...@dor.ky wrote:
 Are you using POST or DELETE?

 On 7 Jul 2011, at 22:35, oosswwaalldd wrote:









  But what about the API consumption for deleting DMs even when
  direct_messages/destroy/:id method says Rate Limited = False in the
  docs?

  any way to delete DMs in efficient way /

  Thanks

  On Jul 7, 2:55 pm, Scott Wilcox sc...@dor.ky wrote:
  There aren't currently any bulk delete methods.

  On 7 Jul 2011, at 19:50, oosswwaalldd wrote:

  Hi guys,

  I have an app that gets certain amount of DMs of my Local Traffic
  Twitter account and post them for my followers, I decided to turn this
  service off in some hours of the day and turn it back on on other
  hours (automatically), this action acumulates a bunch of old direct
  messages in my inbox because I have +14.000 followers. My question is:

  is there any API method to delete/bulk detele/flush all my direct
  messages in my Twitter inbox? even if the total amount is larger that
  200 (max amount allowed by direct_messages/destroy/:id method)

  I was reading the rate limit FAQs and they explain that deleting DMs
  does not consume API hits but it does! each deleted DM consume a API
  hit so if a I have more that 350 DMs in my Twitter inbox (which is my
  case), deleting one by one is not an option for me

 --
 Scott Wilcox

 @dordotky | sc...@dor.ky |http://dor.ky
 +44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Re: http://groups.google.com/group/twitter-development-talk

2011-07-07 Thread Georgooty varghese
Hi,

*Use header-based OAuth* - OAuth provides for means to pass OAuth-related
parameters on a query string or to provide them as a HTTP Authorization
header. Twitter prefers header-based auth because it separates concerns,
makes debugging easier, and avoids common issues with under or over URL
escaping parameters.

That is web request url contains only
http://api.twitter.com/1/statuses/user_timeline.json

and other oauth parameters are filled into header rquest..right.

Regards,
George


On Thu, Jul 7, 2011 at 9:17 PM, Paul Shriner p...@audiencepoint.com wrote:

 Apparently that was it.

 On Jul 6, 8:25 pm, Georgooty varghese georgo...@gmail.com wrote:
  Hi,
 
  Use header based authentication..
 
  Regards,
  George
 
  On Wed, Jul 6, 2011 at 11:35 PM, Paul Shriner p...@audiencepoint.com
 wrote:
  
 
 
 
 
 
 
   Matt, I am having the same problem and ti started right about the same
   time as this post. Here are the details:
 
   Here are the response headers
   
 
   Status: 401 Unauthorized
   X-Transaction: 1309969076-98811-26180
   X-RateLimit-Limit: 350
   X-Frame-Options: SAMEORIGIN
   X-RateLimit-Remaining: 348
   X-Runtime: 0.02492
   Pragma: no-cache
   X-Access-Level: read-write
   X-RateLimit-Class: api_identified
   X-Revision: DEV
   X-MID: 4ea2b57c4cf85a22ee50fa2a7c5674aa26844059
   X-RateLimit-Reset: 1309972621
   Content-Length: 372
   Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
   check=0
   Content-Type: application/json; charset=utf-8
   Date: Wed, 06 Jul 2011 16:17:57 GMT
   Expires: Tue, 31 Mar 1981 05:00:00 GMT
   Last-Modified: Wed, 06 Jul 2011 16:17:57 GMT
   Set-Cookie: k=204.251.185.1.1309969076964694; path=/; expires=Wed, 13-
   Jul-11 16:17:56 GMT;
   domain=.twitter.com,guest_id=v1%3A130996907700036484;
   domain=.twitter.com; path=/; expires=Sat, 06 Jul 2013 04:17:57
   GMT,lang=en;
 
  
 path=/,_twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCBTTPQAxAToHaWQiJWMxYWYyYTAzM2JlMjM3%250AYThjNmE1ZTViZTAyMGZlMTE4IgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy
 
  
 %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--13e6aa6dc4f9fb55afa9c2212509c53e04554bb6;
   domain=.twitter.com; path=/; HttpOnly
   Server: hi
   WWW-Authenticate: OAuth realm=http://api.twitter.com;
   Vary: Accept-Encoding
   Connection: close
 
   Here are the contents of the message:
 
   hash
   errorThis method requires authentication./error
   -
   request
   /1/statuses/user_timeline.xml?
 
  
 count=100oauth_consumer_key=4vqfXySDSPUncNbSQdrhnwoauth_nonce=2886488oauth_signature_method=HMAC-
   SHA1oauth_timestamp=1309974284oauth_token=190741720-
 
  
 EzxXr983TNYs28xhdd3tG610rtnQPxiy5LpeOLwwoauth_version=1.0user_id=573027936oauth_signature=LnYtMOdMopPYtaNMCfl9E
   +unjcA=
   /request
   /hash
 
   No idea on where to start on this.
   On Jun 23, 5:24 pm, Matt Harris thematthar...@twitter.com wrote:
Hi dalvir,
 
The REST API lives on the domain api.twitter.com not twitter.com.
 The
request you are making should be made to:
   http://api.twitter.com/1/statuses/user_timeline.json
 
To understand the reason for the error you will need to inspect the
   response
that comes back from the API. We put more details about errors in the
response body to help you identify what you need to do in your code.
 
Best,
@themattharris 
  https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter
 
On Thu, Jun 23, 2011 at 12:32 AM, dalvir sainidal...@gmail.com
 wrote:
 I am  using the following code. This was working fine.
  oAuthTwitter oAuth = new oAuthTwitter();
oAuth.Token = Token;
oAuth.TokenSecret = secrentoken;
TwitterToken objtwitter = new
 TwitterToken();
 
 oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, 
 http://twitter.com/
 statuses/user_timeline.xml, null);//This line return the following
 401 error
 But Now it stoped to work. and returning the error
 The remote server returned an error: (401) Unauthorized.
 
 Why this error is coming?
 
 --
 Twitter developer documentation and resources:
  https://dev.twitter.com/doc
 API updates via Twitter:https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
https://groups.google.com/forum/#!forum/twitter-development-talk
 
   --
   Twitter developer documentation and resources:
 https://dev.twitter.com/doc
   API updates via Twitter:https://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  https://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  https://groups.google.com/forum/#!forum/twitter-development-talk

 --
  Twitter developer documentation and resources:
 https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements