For example, if I need to request a detail {code...} that requires a credit post, the returned data is: {code...}. How do I pass the logon status in the discuz interface? Is there an available logon interface? For example, I need to request details of a post that requires points.
curl http://mingyinet.ihaoyisheng.com/bbs/api/mobile/index.php?submodule=checkpost&version=1&mobile=no&module=viewthread&ppp=10&tid=33&page=1
The returned data is:
{... "Message": {"messageval": "thread_nopermission // 1", "messagestr": "Sorry, this post requires a read permission higher than 200 before browsing "}}
How do I pass the logon status in the discuz interface? Is there an available logon interface?
Reply content:
For example, I need to request details of a post that requires points.
curl http://mingyinet.ihaoyisheng.com/bbs/api/mobile/index.php?submodule=checkpost&version=1&mobile=no&module=viewthread&ppp=10&tid=33&page=1
The returned data is:
{... "Message": {"messageval": "thread_nopermission // 1", "messagestr": "Sorry, this post requires a read permission higher than 200 before browsing "}}
How do I pass the logon status in the discuz interface? Is there an available logon interface?
There is a login interface, based on your url is
http://mingyinet.ihaoyisheng.com/bbs/api/mobile/index.php?module=login
It is consistent with the browser login parameters, which is probably the case
http://mingyinet.ihaoyisheng.com/bbs/api/mobile/index.php?module=login&mod=logging&action=login&username=&password=
For details, refer to the parameter verification in this file.
bbs\source\class\class_member.php
On_login Method