diff --git a/README.md b/README.md index d1032c9d..cdef2c66 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ AFOAuth2Manager *OAuth2Manager = AFHTTPRequestOperationManager *manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:baseURL]; -[manager.requestSerializer setAuthorizationHeaderFieldWithCredential:credential.accessToken]; +[manager.requestSerializer setAuthorizationHeaderFieldWithCredential:credential]; [manager GET:@"/path/to/protected/resource" parameters:nil