In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Get the Token function API request method POSTURL https://iimg.com.cn/api/token request parameter name type must indicate whether emailString is the mailbox passwordString is the account password formatString whether the data format is returned, optional json, xml, jsonp. Default json returns data indicating that the parameter name type example value indicates that codeNumber200 status code is returned successfully, and failure returns 500msgStringsuccess prompt information timeNumber1544176295 response time stamp dataarray | token data obtained by object {"token": "8961576c9090ef0902c4b89406f8d557"}. Image upload feature API request method POSTURL https://iimg.com.cn/api/upload request parameter name type must be specified whether imageFile is a form name and whether formatString returns a data format. Optional json, xml, jsonp. Default is json.
Note: if the header has a parameter token during the request, the API authenticates the token, and the uploaded image is also under the token user, otherwise it will be uploaded for tourists.
Return data description parameter name type instance value description codeNumber200 status code, 200 successfully returned Return 500msgStringsuccess prompt message timeNumber1544176295 response timestamp dataarray | object {"name": "9B7BCFBD05891B2D42187F126887777A.jpg", "url": "token data obtained by https://cache.yisu.com/upload/information/20200309/33/56109.jpg"} upload example POST / api/upload HTTP/1.1Host: https://iimg.com.cnConnection: keep-aliveContent-Length: 57398Content-Type: multipart/form-data Boundary=----WebKitFormBoundaryx2mqINKHVPJ8yMdK-WebKitFormBoundaryx2mqINKHVPJ8yMdKContent-Disposition: form-data; name= "image"; filename= "test.png" Content-Type: image/png response error example {"code": 500, "msg": "administrator turned off visitor upload!" , "data": null, "time": 1544245931}
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.