Authentication code recognition: ModuleNotFoundError: No module named 'ShowapiRequest'

Example request

# Python3.6.5 
# packet requests need to be introduced: Run terminal -> into the python / Scripts -> Input: PIP requests the install 

from ShowapiRequest Import ShowapiRequest
 R & lt = ShowapiRequest ( " http://route.showapi.com/184-5 " , " my_appId " , " my_appSecret " ) 
r.addBodyPara ( " img_base64 " , " " ) 
r.addBodyPara ( " typeId " , " 34 is " ) 
r.addBodyPara ( " convert_to_jpg " ,"0") 
R.addBodyPara ( " needMorePrecise " , " 0 " ) 
RES = r.post ()
 Print (res.text) # returns information

Response Example

{
    "showapi_res_code": 0,
    "showapi_res_error": "",
    "showapi_res_body": {
        "Result": "6nr9a"
    }
}

 

Guess you like

Origin www.cnblogs.com/xinxin1994/p/11779601.html