Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitpic not working, Posterous is... why?
    primarykey
    data
    text
    <p>I was using the Twitpic API from in my iPhone app for a while with no problem, then suddenly it started reporting: <strong><em>invalid username or password</em></strong>. </p> <p>I changed the URL to that of yfrog and they reported: <strong><em>could not find the media</em></strong>.</p> <p>I changed the URL to that of Posterous and it <strong><em>works</em></strong>. </p> <p>I've done some Googling and I can't find any problems with Twitpic or Yfrog's server, so I guess it's an artefact of my code - is there anything wrong with it?</p> <pre><code>NSURL *url = [NSURL URLWithString:@"http://posterous.com/api/uploadAndPost"]; ASIFormDataRequest *request = [[[ASIFormDataRequest alloc] initWithURL:url] autorelease]; [request setPostValue:[tmpArray objectForKey:@"Twitter Username"] forKey:@"username"]; [request setPostValue:[tmpArray objectForKey:@"Twitter Password"] forKey:@"password"]; [request setPostValue:scrapbook.short_description forKey:@"message"]; [request setData:scrapbook.image forKey:@"media"]; NSLog(@"User: '%@', pass: '%@'", [tmpArray objectForKey:@"Twitter Username"], [tmpArray objectForKey:@"Twitter Password"]); [request setDelegate:self]; [request startAsynchronous]; </code></pre> <p>[tmpArray objectForKey:@"Twitter Username"] and [tmpArray objectForKey:@"Twitter Password"] hold my username and password respectively as NSStrings, scrapbook.short_description is an NSString and scrapbook.image is NSData.</p> <p>The NSLog outputs the correct username and password.</p> <p>Thank you for your time Andy</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload