Exemplo n.º 1
0
 def getAccessToken(self, params):
     res = XMHttpClient.get(self, self.OAUTH2_PATH['token'], params)
     jsonObject = XMHttpClient.safeJsonLoad(self, res.read())
     return jsonObject
Exemplo n.º 2
0
 def getErrCode(self, params):
     res = XMHttpClient.get(self, '', params)
     data = res.read()
     jsonObject = XMHttpClient.safeJsonLoad(self, data)
     return jsonObject
Exemplo n.º 3
0
 def postErrCode(self, params):
     res = XMHttpClient.post(self, '', params,  header={'content-type':'text/plain'})
     jsonObject = XMHttpClient.safeJsonLoad(self, res.read(),)
     return jsonObject