How to pass the logon status in the discuz interface call

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.