[twitter-dev] BUMP: Search API the public alternative to URL count API?

2011-03-02 Thread Martin Cronjé
Hi there,

I am busy writing an aggregator and I am looking at using the Twitter
API to get URL counts.

I seems that public developers are not allowed to use the URL
counting API based on the Tweet Button FAQ. Which leaves me with not
other option but to use the search API for URL counting. Using the
search API makes not sense if there a Count API.

This leaves me with the following questions
1. Will my application / I.P. get banned if I use the Count API?
2. Is there a way to request multiple URLs at once to limit round-
trips?
3. The URL count API returns not threshold information. So if I am
allowed to use it, should I manage the thresholds myself

FAQ - http://dev.twitter.com/pages/tweet_button_faq#count-api
URL Count API - http://urls.api.twitter.com/1/urls/count.json?url=URL
Search API - http://search.twitter.com/search.format

My application aggregates URLs on a central server using a shared
account so the request numbers may be quite high

Martin

-- 
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


[twitter-dev] Re: D. Wade !!!

2011-03-02 Thread Rich
Tweets starting with d are assumed to be direct messages using Twitter
text commands 
http://support.twitter.com/entries/14020-official-twitter-text-commands

On Mar 2, 6:42 am, John Carver johnlewiscar...@gmail.com wrote:
 hi

 why im not able to post any tweet starts with D. Wade ???

 :)

-- 
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


[twitter-dev] Re: Twitter Error While Authenticating ..IPhone Application

2011-03-02 Thread Rich
Have you applied for xAuth access, oAuth is enabled for clients by
default but xAuth you have to apply for.

On Mar 1, 12:53 pm, Battan Ror batta...@gmail.com wrote:
 Hi

 I am using MGTwitterEngine in Iphone application

 But I am getting error in log of function
 - (void)requestFailed:(NSString *)connectionIdentifier withError:
 (NSError *)error
 {
     NSLog(@Twitter Request failed for connectionIdentifier = %@,
 error = %@ (%@),
           connectionIdentifier,
           [error localizedDescription],
           [error userInfo]);

 }

 Error Log

 Twitter Request failed for connectionIdentifier =
 8E192CD3-35E5-46C8-86E9-1EADEE38B6E8, error = The operation couldn’t
 be completed. (HTTP error 401.) ({
     body = ?xml version=\1.0\ encoding=\UTF-8\?\nhash\n
 request/oauth/access_token/request\n  errorClient application is
 not permitted to use xAuth./error\n/hash\n;
     response = NSHTTPURLResponse: 0x603b6a0;

 })

 following code in controller class
 -(IBAction)twitterBtnAct:(id)sender{
     // Put your Twitter username and password here:
     NSString *username = @myusername;
     NSString *password = @mypassword;

     NSString *consumerKey = @b2jD5AXJewSNfmCBfzvlw;
     NSString *consumerSecret =
 @ceqEECJalqtVUnxl8sNQxrh5dXGUvo9cg4HxKNn6g;

     // Most API calls require a name and password to be set...
     if (! username || ! password || !consumerKey || !consumerSecret) {
         NSLog(@You forgot to specify your username/password/key/
 secret in AppController.m, things might not work!);
                 NSLog(@And if things are mysteriously working without the 
 username/
 password, it's because NSURLConnection is using a session cookie from
 another connection.);
     }

     // Create a TwitterEngine and set our login details.
     twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
     [twitterEngine setUsesSecureConnection:NO];
     [twitterEngine setConsumerKey:consumerKey secret:consumerSecret];
     // This has been undepreciated for the purposes of dealing with
 Lists.
     // At present the list API calls require you to specify a user
 that owns the list.
     [twitterEngine setUsername:username];

     [twitterEngine getXAuthAccessTokenForUsername:username
 password:password];

 }

 #pragma mark Twitter methods
 #pragma mark MGTwitterEngineDelegate methods
 - (void)accessTokenReceived:(OAToken *)aToken forRequest:(NSString
 *)connectionIdentifier
 {
     NSLog(@Twitter Access token received! %@,aToken);
     token = [aToken retain];
     [self runTests];

 }

 - (void)requestSucceeded:(NSString *)connectionIdentifier
 {
     NSLog(@Twitter Request succeeded for connectionIdentifier = %@,
 connectionIdentifier);

 }

 - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString
 *)connectionIdentifier
 {
     NSLog(@Twitter Got statuses for %@:\r%@, connectionIdentifier,
 statuses);

 }

 - (void)directMessagesReceived:(NSArray *)messages forRequest:
 (NSString *)connectionIdentifier
 {
     NSLog(@Twitter Got direct messages for %@:\r%@,
 connectionIdentifier, messages);

 }

 - (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString
 *)connectionIdentifier
 {
     NSLog(@Twitter Got user info for %@:\r%@, connectionIdentifier,
 userInfo);

 }



-- 
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


[twitter-dev] Permission denied error

2011-03-02 Thread Anny
Hello,
  I am new in twitter API implementation, I can login to the twitter
through my site but some times this error comes and page does not get
reload
1. I'm seeing this error in @anywhere sign-in process,
   Permission denied for http://x.com (document.domain has not
been set) to get property   Window.document from http://
platform0.twitter.com (document.domain=http://twitter.com).

After page reload manually then this error goes out and work done
properly.
I am implementing the twitter API with help provided by
http://net.tutsplus.com/tutorials/javascript-ajax/using-twitters-anywhere-service-in-6-steps/

Does there anything needed to do for permission.

2. Can we get the users email-Id  after login through our site

Please help me. Its too much argent.

-- 
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


[twitter-dev] How to change the Application Website

2011-03-02 Thread 振鹏 李
I've changed the Application Website on the page 
https://dev.twitter.com/apps/edit/x
.But when I tweet from my API , it still shows the OLD Website
address. Is not it will change to the new one in real time ? Or 24 hrs
later ?

-- 
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


[twitter-dev] Re: users/lookup returns duplicates, missing records for valid users

2011-03-02 Thread David JULIEN
I have noticed this strange behaviour too (duplicated results and
unknown users). For instance, yesterday, when I tried to lookup for
user 44537294 (with two different accounts), I received during many
hours information about user 243784138, before receiving expected
result (around 17/18h UTC).

David

-- 
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


[twitter-dev] Update Status

2011-03-02 Thread madhu
Hi,
Previously We had Updated the status of one twitter account. The work
flow we followed is
1)Registering the application in order to generate Consumer Key and
Secret
2)Logging in with the Consumer Key pair which in turn generates an
access URL
3)the access Url in turn redirects to a page where Access Token and
Secret are generated
4)Updating the status of the id with these 4 parameters
   a)Consumer key
   b)Consumer Secret
   c)Access Token
   d)Access Secret
which are all hard coded in the page.

Now, We need to Update Status(post messages to the home page of
twitter from the user himself) with ANY twitter id . When an update in
the status message is done it should be reflected in the home page
also. Please guide us in this process. Is that possible with one
servlet? What is the flow to be followed?
Also is there any possible method by which all the user credentials
can be stored for future use.

Regards,
madhu.

-- 
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


[twitter-dev] IE6 widgets.js Object Expected error

2011-03-02 Thread Grev
Hey all,

Not a huge error, but I am using the Tweet button code as suggested
here (http://twitter.com/about/resources/tweetbutton) however in IE6,
I am presented with a Javascript error, object expected.

Line 2
Char 1870

I checked a few other sites and it seems the same error is present.

Is there a fix for this or is it a known issue?

-- 
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


[twitter-dev] Re: wait time for Site Streams whitelist ?

2011-03-02 Thread hank777
I just registered for site streams this morning because I did not
realize that this was the only authorized way of building a website
that uses twitter. We are trying to demo something at SXSW, and launch
a few weeks after, and I am wondering if I cant use the other APIs
because of rate limits or connection limits, and I cant use site
streams because you are not accepting new developers, how do we move
forward, or does this really mean no one should be developing new web
site based applications right now if they are not in the beta program?

Thanks,
Hank

On Feb 1, 10:36 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 We still have a number of tasks to accomplish before we can move to the next
 stage of the beta. Pending applications will be reviewed once they are
 actionable.

 Thanks for your patience.

 Taylor







 On Mon, Jan 31, 2011 at 7:20 PM, Jan Paricka jpari...@gmail.com wrote:
  Weeks upon weeks upon weeks.  No joking.

  Jan

  On Tue, Feb 1, 2011 at 4:14 AM, paloalto sungh...@gmail.com wrote:

  How long does it take to get whitelisted for Site Streams API?
  I submitted a form to be whitelisted and have not received any
  confirmation e-mail.
  I am in the dark with no clue as to how long I should expect to wait.

  Sungho

  --
  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

   --
  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

-- 
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


Re: [twitter-dev] Re: wait time for Site Streams whitelist ?

2011-03-02 Thread Adam Green
There are lots of ways to create website apps without using site
streams. If you describe the type of things you want to do here, you
will get plenty of advice. You don't have to reveal any secret plans.
Just describe the type of data you need from Twitter and the type of
changes you need to make to user accounts.

On Wed, Mar 2, 2011 at 10:37 AM, hank777 hank...@gmail.com wrote:
 I just registered for site streams this morning because I did not
 realize that this was the only authorized way of building a website
 that uses twitter. We are trying to demo something at SXSW, and launch
 a few weeks after, and I am wondering if I cant use the other APIs
 because of rate limits or connection limits, and I cant use site
 streams because you are not accepting new developers, how do we move
 forward, or does this really mean no one should be developing new web
 site based applications right now if they are not in the beta program?

 Thanks,
 Hank

 On Feb 1, 10:36 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 We still have a number of tasks to accomplish before we can move to the next
 stage of the beta. Pending applications will be reviewed once they are
 actionable.

 Thanks for your patience.

 Taylor







 On Mon, Jan 31, 2011 at 7:20 PM, Jan Paricka jpari...@gmail.com wrote:
  Weeks upon weeks upon weeks.  No joking.

  Jan

  On Tue, Feb 1, 2011 at 4:14 AM, paloalto sungh...@gmail.com wrote:

  How long does it take to get whitelisted for Site Streams API?
  I submitted a form to be whitelisted and have not received any
  confirmation e-mail.
  I am in the dark with no clue as to how long I should expect to wait.

  Sungho

  --
  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

   --
  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

 --
 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




-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
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


[twitter-dev] Re: wait time for Site Streams whitelist ?

2011-03-02 Thread Rich
I'm still waiting. I did get an email on the 21st Feb asking me to
sign a ToS for Site Streams and reply... which I duly did a few
minutes later.

Yet I've heard nothing since then.  Someone at Twitter did reply to me
on Twitter itself saying they are usually reviewed every 1 to 2 weeks,
but again nothing since then.

On Mar 2, 4:09 pm, Hank Williams hank...@gmail.com wrote:
 I understand the APIs from a technical perspective. The issue is about 
 twitter *policy* around rate limits and connection limits. As a non 
 whitelisted app we will quickly run into rate limits so I am just trying to 
 understand what the current rules are.

 On Mar 2, 2011, at 10:52 AM, Adam Green 140...@gmail.com wrote:

  There are lots of ways to create website apps without using site
  streams. If you describe the type of things you want to do here, you
  will get plenty of advice. You don't have to reveal any secret plans.
  Just describe the type of data you need from Twitter and the type of
  changes you need to make to user accounts.

  On Wed, Mar 2, 2011 at 10:37 AM, hank777 hank...@gmail.com wrote:
  I just registered for site streams this morning because I did not
  realize that this was the only authorized way of building a website
  that uses twitter. We are trying to demo something at SXSW, and launch
  a few weeks after, and I am wondering if I cant use the other APIs
  because of rate limits or connection limits, and I cant use site
  streams because you are not accepting new developers, how do we move
  forward, or does this really mean no one should be developing new web
  site based applications right now if they are not in the beta program?

  Thanks,
  Hank

  On Feb 1, 10:36 am, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
  We still have a number of tasks to accomplish before we can move to the 
  next
  stage of the beta. Pending applications will be reviewed once they are
  actionable.

  Thanks for your patience.

  Taylor

  On Mon, Jan 31, 2011 at 7:20 PM, Jan Paricka jpari...@gmail.com wrote:
  Weeks upon weeks upon weeks.  No joking.

  Jan

  On Tue, Feb 1, 2011 at 4:14 AM, paloalto sungh...@gmail.com wrote:

  How long does it take to get whitelisted for Site Streams API?
  I submitted a form to be whitelisted and have not received any
  confirmation e-mail.
  I am in the dark with no clue as to how long I should expect to wait.

  Sungho

  --
  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

   --
  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

  --
  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

  --
  Adam Green
  Twitter API Consultant and Trainer
 http://140dev.com
  @140dev

  --
  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



-- 
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


Re: [twitter-dev] Re: wait time for Site Streams whitelist ?

2011-03-02 Thread Hank Williams
I understand the APIs from a technical perspective. The issue is about twitter 
*policy* around rate limits and connection limits. As a non whitelisted app we 
will quickly run into rate limits so I am just trying to understand what the 
current rules are.

On Mar 2, 2011, at 10:52 AM, Adam Green 140...@gmail.com wrote:

 There are lots of ways to create website apps without using site
 streams. If you describe the type of things you want to do here, you
 will get plenty of advice. You don't have to reveal any secret plans.
 Just describe the type of data you need from Twitter and the type of
 changes you need to make to user accounts.
 
 On Wed, Mar 2, 2011 at 10:37 AM, hank777 hank...@gmail.com wrote:
 I just registered for site streams this morning because I did not
 realize that this was the only authorized way of building a website
 that uses twitter. We are trying to demo something at SXSW, and launch
 a few weeks after, and I am wondering if I cant use the other APIs
 because of rate limits or connection limits, and I cant use site
 streams because you are not accepting new developers, how do we move
 forward, or does this really mean no one should be developing new web
 site based applications right now if they are not in the beta program?
 
 Thanks,
 Hank
 
 On Feb 1, 10:36 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 We still have a number of tasks to accomplish before we can move to the next
 stage of the beta. Pending applications will be reviewed once they are
 actionable.
 
 Thanks for your patience.
 
 Taylor
 
 
 
 
 
 
 
 On Mon, Jan 31, 2011 at 7:20 PM, Jan Paricka jpari...@gmail.com wrote:
 Weeks upon weeks upon weeks.  No joking.
 
 Jan
 
 On Tue, Feb 1, 2011 at 4:14 AM, paloalto sungh...@gmail.com wrote:
 
 How long does it take to get whitelisted for Site Streams API?
 I submitted a form to be whitelisted and have not received any
 confirmation e-mail.
 I am in the dark with no clue as to how long I should expect to wait.
 
 Sungho
 
 --
 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
 
  --
 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
 
 --
 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
 
 
 
 
 -- 
 Adam Green
 Twitter API Consultant and Trainer
 http://140dev.com
 @140dev
 
 -- 
 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

-- 
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


Re: [twitter-dev] Re: Trying to use Abraham's twitteroauth library to make search query, returns list of numbers in scientific notation?

2011-03-02 Thread Peter Denton
I think the issue regarding this -- and I may be out of the loop on an
update -- is that the end point of
http://api.twitter.com/1/searchhttp://www.google.com/url?sa=Dq=http://api.twitter.com/1/search
is gone.

Thus, when you construct the url using Abraham's library, you get a url with
http://api.twitter.com/1/search goog_1157391411 as the host instead of
using http://search.twitter.com/search


On Mon, Feb 28, 2011 at 11:10 AM, Chris Sobolewski 
sobolewski.ch...@gmail.com wrote:

 Thanks, I originally started out formatting the twitter query with an
 array, as you suggest, the final result here is a product of trouble
 shooting to get more than just an empty screen.

 I will give this a try. Thank you.

 On Feb 28, 2:03 pm, Abraham Williams 4bra...@gmail.com wrote:
  The Search API does not support authentication and so TwitterOAuth does
 not
  currently support it. TwitterOAuth useshttps://api.twitter.com/1/as the
  API URL when the Search API useshttp://search.twitter.comas
 documentedhttp://dev.twitter.com/doc/get/search.
 
  To use the Search API I recommend performing a simple cURL request
 instead.
 
  Also in general TwitterOAuth requests should formated like
 
 $query = $twitteroauth-get(search, array(q = $q, rpp =100);
 
  instead of
 
 $query = $twitteroauth-get(search.json?q={$q}rpp=100);
 
  Finally the integers returned are larger then 32bit PHP supports. In
  officially supported Twitter API methods most id elements have a matching
  id_str element that is a string.
 
  Abraham
  -
  Abraham Williams | Hacker Advocate | abrah.am
  http://abrah.amJust launched from Answerly http://answerly.com:
  InboxQhttp://inboxq.comfor Chrome
  @abraham https://twitter.com/abraham | github.com/abraham |
 blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
  On Mon, Feb 28, 2011 at 10:15, Chris Sobolewski
  sobolewski.ch...@gmail.comwrote:
 
 
 
 
 
 
 
   I am attempting to use the twitteroauth library to make a query, and I
   am getting some odd responses back.
 
   My code:
  $twitteroauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
  $q=urlencode(#twitter);
  $query = $twitteroauth-get(search.json?q={$q}rpp=100);
  echo pre;
  $qq = $query;
  print_r($qq);
  echo /pre;
 
   First odd result is, when I try doing a JSON decode, I get an error
   that it is not JSON which is what I expected to get back.
 
   Second odd result is when I print_r, this is what I recieve back:
 
   stdClass Object
   (
  [created_in] = 0.11146
  [statuses] = Array
  (
  [0] = 4.2285483207823E+16
  [1] = 4.2285478212403E+16
  [2] = 4.2285477021237E+16
  [3] = 4.228546655225E+16
  [4] = 4.2285444607648E+16
  [5] = 4.2285433509528E+16
  [6] = 4.2285433383559E+16
   so on all the way down to 100
  )
   )
 
   --
   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

 --
 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


-- 
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


Re: [twitter-dev] Re: Twitter Error While Authenticating ..IPhone Application

2011-03-02 Thread Battan Amit
for xAuth I think we have to give the itune URL and other detail of
application
As my application is in developing stage ... So How I will get it.

OR

And for now how I am using oAuth in MGTwitterEngine



AB



On 2 March 2011 17:19, Rich rhyl...@gmail.com wrote:

 Have you applied for xAuth access, oAuth is enabled for clients by
 default but xAuth you have to apply for.

 On Mar 1, 12:53 pm, Battan Ror batta...@gmail.com wrote:
  Hi
 
  I am using MGTwitterEngine in Iphone application
 
  But I am getting error in log of function
  - (void)requestFailed:(NSString *)connectionIdentifier withError:
  (NSError *)error
  {
  NSLog(@Twitter Request failed for connectionIdentifier = %@,
  error = %@ (%@),
connectionIdentifier,
[error localizedDescription],
[error userInfo]);
 
  }
 
  Error Log
 
  Twitter Request failed for connectionIdentifier =
  8E192CD3-35E5-46C8-86E9-1EADEE38B6E8, error = The operation couldn’t
  be completed. (HTTP error 401.) ({
  body = ?xml version=\1.0\ encoding=\UTF-8\?\nhash\n
  request/oauth/access_token/request\n  errorClient application is
  not permitted to use xAuth./error\n/hash\n;
  response = NSHTTPURLResponse: 0x603b6a0;
 
  })
 
  following code in controller class
  -(IBAction)twitterBtnAct:(id)sender{
  // Put your Twitter username and password here:
  NSString *username = @myusername;
  NSString *password = @mypassword;
 
  NSString *consumerKey = @b2jD5AXJewSNfmCBfzvlw;
  NSString *consumerSecret =
  @ceqEECJalqtVUnxl8sNQxrh5dXGUvo9cg4HxKNn6g;
 
  // Most API calls require a name and password to be set...
  if (! username || ! password || !consumerKey || !consumerSecret) {
  NSLog(@You forgot to specify your username/password/key/
  secret in AppController.m, things might not work!);
  NSLog(@And if things are mysteriously working without
 the username/
  password, it's because NSURLConnection is using a session cookie from
  another connection.);
  }
 
  // Create a TwitterEngine and set our login details.
  twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
  [twitterEngine setUsesSecureConnection:NO];
  [twitterEngine setConsumerKey:consumerKey secret:consumerSecret];
  // This has been undepreciated for the purposes of dealing with
  Lists.
  // At present the list API calls require you to specify a user
  that owns the list.
  [twitterEngine setUsername:username];
 
  [twitterEngine getXAuthAccessTokenForUsername:username
  password:password];
 
  }
 
  #pragma mark Twitter methods
  #pragma mark MGTwitterEngineDelegate methods
  - (void)accessTokenReceived:(OAToken *)aToken forRequest:(NSString
  *)connectionIdentifier
  {
  NSLog(@Twitter Access token received! %@,aToken);
  token = [aToken retain];
  [self runTests];
 
  }
 
  - (void)requestSucceeded:(NSString *)connectionIdentifier
  {
  NSLog(@Twitter Request succeeded for connectionIdentifier = %@,
  connectionIdentifier);
 
  }
 
  - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString
  *)connectionIdentifier
  {
  NSLog(@Twitter Got statuses for %@:\r%@, connectionIdentifier,
  statuses);
 
  }
 
  - (void)directMessagesReceived:(NSArray *)messages forRequest:
  (NSString *)connectionIdentifier
  {
  NSLog(@Twitter Got direct messages for %@:\r%@,
  connectionIdentifier, messages);
 
  }
 
  - (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString
  *)connectionIdentifier
  {
  NSLog(@Twitter Got user info for %@:\r%@, connectionIdentifier,
  userInfo);
 
  }
 
 

 --
 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


-- 
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