我建立了一個IPhone的Twitter客戶端,我使用OAuth驗證我的要求嘰嘰喳喳發佈使用OAuth從iOS應用
鳴叫,現在我能夠回到家的時間線,甚至當我嘗試發佈包含空格的推文時,問題就開始了,例如它給了我:{「error」:「簽名不正確」,「request」:「\/1 \ /statuses\/update.json「}
例如鳴叫:‘ThisIsATweet’的作品,但推特:‘在這裏,這是推特’不工作 是我的HTTP請求正文代碼:
NSData* body =[NSString stringWithFormat:@"status=%@",[self percentageEncoding:tweet]];
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
[request setValue:[NSString stringWithFormat:@"%d",[body length]] forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody:[body dataUsingEncoding:NSISOLatin1StringEncoding]];
請問您可以寫在Twitter上張貼的網址?你創建請求的那個? – 2011-08-24 09:24:31