1

iPhoneのTwitterアプリ(MGTwitterEngine)でRETWEETを行う方法

4

2 に答える 2

5

この機能はmattgemmell/MGTwitterEngineではまだサポートされていないようです。

それまでの間、MGTwitterEngineのこのバリアントを参照することにより、MGTwitterEngineの現在のバージョンにその関数を追加できます: freeatnet / MGTwitterEngine

- (NSString *)sendRetweet:(unsigned long)updateID
{
  if (updateID == 0){
    return nil;
  }
  NSString *path = [NSString stringWithFormat:@"statuses/retweet/%u.%@", updateID, API_FORMAT];

  return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path 

                        queryParameters:nil body:nil 
                            requestType:MGTwitterUpdateSendRequest
                           responseType:MGTwitterStatus];
}
于 2010-04-15T05:55:10.327 に答える
1
- (NSString *)sendRetweet:(unsigned long)updateID

{
    if (updateID == 0){

        return nil;
    }

    NSString *path = [NSString stringWithFormat:@"statuses/retweet/%u.%@", updateID, API_FORMAT];

    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
        [params setObject:[NSString stringWithFormat:@"%@", updateID] forKey:@"id"];
        NSString *body = [self _queryStringWithBase:nil parameters:params prefixed:NO];


    return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path 
                        queryParameters:params body:body 
                            requestType:MGTwitterUpdateSendRequest
                           responseType:MGTwitterStatus];
}
于 2011-09-29T07:38:25.690 に答える