Skip to content

Instantly share code, notes, and snippets.

View 3846masa's full-sized avatar

Masahiro Miyashiro (3846masa) 3846masa

View GitHub Profile
@3846masa
3846masa / api.py.patch
Last active August 29, 2015 14:26 — forked from windows98SE/api.py.patch
[fix] LINE API function login ( api.py ) / new examples
@@ -55,7 +55,21 @@
After login, make `client` and `client_in` instance
to communicate with LINE server
"""
- raise Exception("Code is removed because of the request of LINE corporation")
+
+ self.transport = THttpClient.THttpClient(self.LINE_HTTP_URL)
+ self.transport_in = THttpClient.THttpClient(self.LINE_HTTP_IN_URL)
+
+ self.transport.setCustomHeaders(self._headers)