- 帖子
- 7
- 主題
- 3
- 精華
- 0
- 積分
- 10
- 點名
- 0
- 作業系統
- win7
- 軟體版本
- office2010
- 閱讀權限
- 10
- 性別
- 男
- 註冊時間
- 2014-8-5
- 最後登錄
- 2016-4-13
|
最近也想弄類似的程式
有查了一些資料
搜尋line.api很多網頁都指向http://carpedm20.github.io/line/api/models.html#linemessage
說是大神提供的
以下是網頁的其中一個程式碼。
from line import LineClient, LineGroup, LineContact
try:
client = LineClient("ID", "PASSWORD")
#client = LineClient(authToken="AUTHTOKEN")
except:
print "Login Failed"
while True:
op_list = []
for op in client.longPoll():
op_list.append(op)
for op in op_list:
sender = op[0]
receiver = op[1]
message = op[2]
msg = message.text
receiver.sendMessage("[%s] %s" % (sender.name, msg))
問題一:請問這是什麼語言?
問題二: 程式碼中LineClient,為什麼他們不用先宣告?
https://www.youtube.com/watch?v=qwIlf1OpXwA(這是skype的,一開始有先導入api
,所以很多函數不用宣告,就可以直接用)
問題三:樓上有提到line.api需要付費,那這個網頁的程式碼還能用嗎?
問題四:這大神的api是自創的?那自創的方法是什麼?破解line.exe嗎?
有錯請指正,希望能得到解答,感激不盡。 |
|