Vimeo,Twitter

16 views
Skip to first unread message

Rajnikant Hole

unread,
Nov 23, 2012, 12:27:24 AM11/23/12
to iphone-...@googlegroups.com


   
     hi   All

       i want fetch json data of twitter,vimeo . i am creating app key ...all thing ...but in 
    1. Twitter doc  3 ledge method they said set auth-heder in request ---how set this request i doent get it.
        i want to fetch my data in twitter by without username and password --by app -key .....access token...etc...
       so in twiiiter 1.1 api ...
   
      2. same scenario i want fetch data from vimeo by advance api how i can fetch json data 
       In vimeo advace api they show ply background like Facebook query editor...
     
      


       Thanks
      
     Rajnikant Hole
     09762323067



   

Bharat Jagtap

unread,
Nov 27, 2012, 3:42:26 AM11/27/12
to iphone-...@googlegroups.com
What framework are you using to send the HTTP requests ? If you are using NSURLRequest then I will recommend ASIHTTPRequest to do http calls.

Now when you create http request object. You need to set some http header fields. Check out the twitter api documentation , you will find what header fields you are supposed to set in the request header. 


      
     Rajnikant Hole
     09762323067



   

--
BitCode Technologies Pvt. Ltd.
Find more about us at: http://www.bitcode.in
Check out the iPhone Tutorials : http://www.iphone-bitcode.blogspot.com
 
For more options, visit this group at
http://groups.google.com/group/iphone-bitcode?hl=en



--
With regards ,
Bharat Jagtap
Sr. Software Associate
Bitcode Technologies Pvt Ltd , Pune
Mob - (+91) 9881 900 897
mail - bharat...@bitcode.in
web : www.bitcode.in

skype id - 
bharat.jagtap


Rajnikant Hole

unread,
Nov 29, 2012, 4:36:26 AM11/29/12
to iphone-...@googlegroups.com

  


                Hi Sir,



             Sir I got one framework OauthConsumer master  ...I see code like from android setting values and it works
    
      i.e.

        NSString *pro=[NSString stringWithFormat:@"%@%@&count=100", @"https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=",[[listOfArray objectAtIndex:dataFlag] substringFromIndex:1]];

       OADataFetcher *fetcher;

       OAConsumer *con = [[OAConsumer alloc]initWithKey:@"NYKNsIyiSGHPNmZIplgQqQ" secret:@"AWrgZZu6OaWIzvWTPvYTVDYOYKrdrCs0drCRo5WqtKE"];

        

        

        NSURL *tt=[NSURL URLWithString:pro];

              

        OAToken *p=[[OAToken alloc]initWithKey:@"727611866-IubjhIFn8MYGfF07HoBU0lwOEOpskfgnf4NKE" secret:@"P3fqnJ8l6j8fpGnPn6co6br5qrqtL6g32uTDFGS0zQY"];

        

        OAMutableURLRequest *request = [[OAMutableURLRequest alloc] initWithURL:tt

                                                   consumer:con

                                                      token:p

                                                      realm:nil

                                                               signatureProvider:nil] ;        

        [request setHTTPMethod:@"GET"];

        

        

        fetcher = [[OADataFetcher alloc] init] ;        

        [fetcher fetchDataWithRequest:request

                             delegate:self

                    didFinishSelector:@selector(requestTokenTicket:didFinishWithData:)

                      didFailSelector:@selector(requestTokenTicket:didFailWithError:)];

- (void)requestTokenTicket:(OAServiceTicket *)ticket didFinishWithData:(NSData *)data {


   

    NSString *responseBody = [[NSString alloc] initWithData:data  encoding:NSUTF8StringEncoding];

       if (ticket.didSucceed) {

        

        if(flag==0){

        

            result=[responseBody JSONValue];

                 }

        if(flag==1)

        {

            result2 = [responseBody JSONValue];

             NSArray *allTweets = [result2 objectForKey:@"statuses"];

            result2ArrayofData=(NSMutableArray*)allTweets;


        }

        

    }

    

    

    

}




        Sir i have some issue i will call regarding downloding data ...



    like in json i want show at time @rajnikanthole #abc @pqr @xyz

    i want show in table at one time but i dont want wait for it .

    if @rajnikant ole contain 200 tweets i dont want wait go to @xyz

    that time how i can do because i want no wait until complete download ..

    

    Please reply as soon as possible...





  

     



    Thanks
    Rajnikant Hole
   09762323067 
    

aniruddha kadam

unread,
Nov 29, 2012, 1:56:28 PM11/29/12
to iphone-...@googlegroups.com
Hi all, 
 Please note : the developer of ASIHTTP library had stop development on it.  It is working with ios 6. Dont knw about the coming ios version... 






    Thanks
    Rajnikant Hole
   09762323067 
    

--
Reply all
Reply to author
Forward
0 new messages