In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you what sesame credit access points for attention in PHP, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
The first step is to get the authorization. This, the official SDK, can be operated as long as the parameters are configured correctly. Note the following parameters, compared with the sesame documentation
In addition, the most important point is that the sesame public key is generated and modified, and the generated public key is copied into the sesame backstage according to the official operation. After saving, the sesame will generate a new public key, click copy, save it to our public key file, and then upload it to the space for PHP call.
$request- > setScene ("test"); $request- > setChannel ("apppc"); $request- > setPlatform ("zmop"); $request- > setIdentityType ("2"); / / necessary parameters / / Construction of authorized business entry card number, name, document type; "identity_param" $request- > setIdentityParam ("{\" certNo\ ":\" $certNo\ ",\" certType\ ":\" IDENTITY_CARD\ ",\" name\ ":\" $name\ "}") / / $request- > setIdentityParam ("{\" certNo\ ":\" $certNo\ ",\" certType\ ":\" IDENTITY_CARD\ ",\" name\ ":\" $name\ ",\" mobileNo\ ":\" $mobile\ "}") / / biz_params "$request- > setBizParams" ("{\" auth_code\ ":\" M_H5\ ",\" channelType\ ":\" app\ ",\" state\ ":\" $uid\ "}") in Section 4 of "constructing Business input parameters"; / /
After the authorization is successful, it will jump to the callback address we set. The callback address GET parameter, which has a param parameter, must be decrypted using the decryption function in SDK. After decryption, the customer's OPENI_ID can be obtained.
All right, after you get the OPEN_ID, save it to the database, and the authorization is complete.
The second step
According to the authorized OPEN_ID, get the sesame score, the example in this SDK, you can run.
The most important thing is the first point.
These are all the contents of this article entitled "what are the precautions for sesame credit access in PHP?" Thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.