Skip to content

Commit

Permalink
Merge pull request #33 from fadhiilrachman/patch-3
Browse files Browse the repository at this point in the history
Update Channel.py
  • Loading branch information
merkremont authored Oct 2, 2017
2 parents 7e25ce5 + c6ad9e4 commit b75a3f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LineAlpha/Api/Channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
class Channel:
client = None

host = "https://gd2.line.naver.jp:443"
host = "gd2.line.naver.jp"
http_query_path = "/S4"
channel_query_path = "/CH4"

UA = "Line/6.0.0 iPad4,1 9.0.2"

LA = "DESKTOPMAC 10.10.2-YOSEMITE-x64 MAC 4.5.0"

authToken = None
Expand All @@ -29,7 +28,7 @@ class Channel:

def __init__(self, authToken):
self.authToken = authToken
self.transport = THttpClient.THttpClient(self.host + self.http_query_path)
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,
Expand Down

0 comments on commit b75a3f9

Please sign in to comment.