MGTwitterEngine
アプリで SDK を使用していますiOS
。ユーザーがこの方法で別のユーザーをフォローしているかどうかを確認しようとしています:
- (NSString *)isUser:(NSString *)username1 receivingUpdatesFor:(NSString *)username2
{
if (!username1 || !username2) {
return nil;
}
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
[params setObject:username1 forKey:@"user_a"];
[params setObject:username2 forKey:@"user_b"];
NSString *path = [NSString stringWithFormat:@"friendships/exists.%@", API_FORMAT];
return [self _sendRequestWithMethod:nil path:path queryParameters:params body:nil
requestType:MGTwitterUpdatesCheckRequest
responseType:MGTwitterMiscellaneous];
}
このメソッドは、常にこの形式の文字列を返しますが、同じではありません。
CB4C097E-6740-4536-885E-BAF7D8A981FD
基本的に、ブール値を取得する方が良いでしょう。この値で何をしようとしているのかわかりません。
何か案は?
**_engine を初期化したコードを編集します
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate: self];
_engine.consumerKey = kOAuthConsumerKey;
_engine.consumerSecret = kOAuthConsumerSecret;