5 // Created by Quang Anh Do on 29/05/2010.
6 // Copyright 2010 Quang Anh Do. All rights reserved.
10 #import "OARequestParameter.h"
13 @implementation OSProvider
15 @synthesize requestUrl, authorizeUrl, accessUrl, endpointUrl, extraRequestUrlParams, isOpenSocial, consumerKey, consumerSecret, name;
19 [authorizeUrl release];
21 [endpointUrl release];
22 [consumerKey release];
23 [consumerSecret release];
29 + (OSProvider *)getATutorProviderWithKey:(NSString *)key withSecret:(NSString *)secret {
30 OSProvider *atutor = [[[OSProvider alloc] init] autorelease];
31 atutor.requestUrl = [NSString stringWithFormat:@"%@/mods/_standard/social/lib/oauth/request_token.php", kATutorURL];
32 atutor.authorizeUrl = [NSString stringWithFormat:@"%@/mods/_standard/social/lib/oauth/authorize.php", kATutorURL];
33 atutor.accessUrl = [NSString stringWithFormat:@"%@/mods/_standard/social/lib/oauth/access_token.php", kATutorURL];
34 atutor.endpointUrl = [NSString stringWithFormat:@"%@/social/rest", kShindigURL];
36 atutor.isOpenSocial = YES;
38 atutor.consumerKey = key;
39 atutor.consumerSecret = secret;
41 atutor.name = @"ATutor";