Ejemplo n.º 1
0
 def __init__(self, authToken):
     self.authToken = authToken
     self.transport = THttpClient.THttpClient('https://gd2.line.naver.jp:443'+self.http_query_path)
     self.transport.setCustomHeaders({ "User-Agent" : self.UA,
     "X-Line-Application" : self.LA,
     "X-Line-Access": self.authToken
     })
     self.transport.open()
     self.protocol = TCompactProtocol.TCompactProtocol(self.transport)
     self.client = LineService.Client(self.protocol)
     self.mid = self.client.getProfile().mid
     self.transport.path = self.channel_query_path
Ejemplo n.º 2
0
 def __init__(self, authToken):
   self.transport = THttpClient.THttpClient('https://gd2.line.naver.jp:443'+ self.http_query_path)
   self.transport.setCustomHeaders({
     "User-Agent" : self.UA,
     "X-Line-Application" : self.LA,
     "X-Line-Access": authToken
   });
   self.protocol = TCompactProtocol.TCompactProtocol(self.transport);
   self.client = LineService.Client(self.protocol)
   self.rev = self.client.getLastOpRevision()
   self.transport.path = self.polling_path
   self.transport.open()
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-
Ejemplo n.º 4
0
# -*- coding: utf-8 -*-
Ejemplo n.º 5
0
import os, sys, time