def setUp(self): self.config = opensocial.ContainerConfig( oauth_consumer_key='oauth.org:12345689', oauth_consumer_secret='not_a_secret', server_rpc_base='http://oauthbox.appspot.com/rpc') self.container = opensocial.ContainerContext(self.config) self.user_id = '101'
def setUp(self): self.config = opensocial.ContainerConfig( oauth_consumer_key='http://opensocial-resources.googlecode.com/svn/samples/rest_rpc/sample.xml', oauth_consumer_secret='6a838d107daf4d09b7d446422f5e7a81', server_rest_base='http://api.myspace.com/v2') self.container = opensocial.ContainerContext(self.config) self.user_id = '425505213'
def setUp(self): self.config = opensocial.ContainerConfig( oauth_consumer_key='google.com:249475676706', oauth_consumer_secret='fWPcoVP6DOLVqZOF2HH+ihU2', server_rpc_base='http://www-opensocial-sandbox.googleusercontent.com/api/rpc', ) self.container = opensocial.ContainerContext(self.config) self.user_id = '101911127807751034357'
def get_container(self): params = { "server_rest_base": API_END_POINT, "security_token": self.security_token.value, "security_token_param": "fcauth", } gfc_config = opensocial.ContainerConfig(**params) return opensocial.ContainerContext(gfc_config)
def setUp(self): self.config = opensocial.ContainerConfig( oauth_consumer_key='orkut.com:623061448914', oauth_consumer_secret='uynAeXiWTisflWX99KU1D2q5', server_rpc_base='http://sandbox.orkut.com/social/rpc', server_rest_base='http://sandbox.orkut.com/social/rest') self.container = opensocial.ContainerContext(self.config) self.user_id = '03067092798963641994'
def setUp(self): self.config = opensocial.ContainerConfig( oauth_consumer_key='http://www.myspace.com/503369944', oauth_consumer_secret= 'a99b44c5e6bf4f82ad3b0963513f0d0b682afe517cbd4c51a40d7a5b06472966', server_rest_base='http://opensocial.myspace.com/roa/09') self.container = opensocial.ContainerContext(self.config) self.user_id = '384066058'
def setUp(self): self.config = opensocial.ContainerConfig( oauth_consumer_key='e2c2d2dd-e6c4-c4df-b2c4-d6efd2dcffd1', oauth_consumer_secret='eb214eedcda39f3440c43b623806912f', server_rpc_base='http://modules.partuza.nl/social/rpc', server_rest_base='http://modules.partuza.nl/social/rest') # http://www.partuza.nl/profile/1311 self.user_id = '1311' # http://opensocial-resources.googlecode.com/svn/samples/rest_rpc/sample.xml self.app_id = '1103' self.container = opensocial.ContainerContext(self.config)
def __init__(self, session): """ Constructor. Args: A sessions.SessionProvider object which can be used to persist data. """ super(TwoLeggedProvider, self).__init__(session) params = { "server_rpc_base": settings.FRIENDCONNECT_RPC_URL, "oauth_consumer_key": settings.FRIENDCONNECT_CONSUMER_KEY, "oauth_consumer_secret": settings.FRIENDCONNECT_CONSUMER_SECRET, } config = opensocial.ContainerConfig(**params) self.__container = opensocial.ContainerContext(config)
def __init__(self, security_token, session): """ Constructor. Args: security_token: The security token passed to the website via a cookie. session: The session provider used to persist this user's data. """ super(FCAuthProvider, self).__init__(session) params = { "server_rpc_base": settings.FRIENDCONNECT_RPC_URL, "security_token": security_token, "security_token_param": "fcauth", } config = opensocial.ContainerConfig(**params) self.__container = opensocial.ContainerContext(config)
def setUp(self): self.userID = 'weaveunittest_' + ''.join( [chr(random.randint(ord('a'), ord('z'))) for i in xrange(10)]) self.password = '******' self.email = '*****@*****.**' self.failUnless(weave.checkNameAvailable(SERVER_BASE, self.userID)) weave.createUser(SERVER_BASE, self.userID, self.password, self.email) # Get an OpenSocial container reference config = opensocial.ContainerConfig( oauth_consumer_key='anonymous', oauth_consumer_secret='anonymous', server_rpc_base=TEST_CONFIG.server_rpc_base, server_rest_base=TEST_CONFIG.server_rest_base) self.container = opensocial.ContainerContext(config)