PHP code that gives the 401 unauthorized.
The Rest API authorities have been enabled and also a secret key has been given for auth.
The http response code 401 says that the provided secret key is wrong or simply not right in place. It needs to be in the header param of the request.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.