rename lib pygomx -> pymxutils
This commit is contained in:
parent
5632dcffa5
commit
304959f5d6
8 changed files with 7 additions and 7 deletions
15
smal/src/pymxutils/mxutils/accountinfo.py
Normal file
15
smal/src/pymxutils/mxutils/accountinfo.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import sys
|
||||
from _pygomx import lib, ffi
|
||||
|
||||
|
||||
def accountinfo():
|
||||
if len(sys.argv) != 3:
|
||||
print("usage: ", sys.argv[0], " url acesstoken")
|
||||
return 1
|
||||
|
||||
url = sys.argv[1].encode(encoding="utf-8")
|
||||
tk = sys.argv[1].encode(encoding="utf-8")
|
||||
|
||||
r = lib.cli_accountinfo(url, tk)
|
||||
result = ffi.string(r)
|
||||
print(result)
|
||||
Loading…
Add table
Add a link
Reference in a new issue