Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Channel.py #33

Merged
merged 1 commit into from
Oct 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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