1 2 3 4 5 6 7 8 9 10 11 | require 'typhoeus' # 接口地址 apiurl= "https://v.1dq.com/api/bank/v2" #请求参数 body={key: '您申请的key' ,bankcard : '123456789' ,realName : '张三' ,cardtype : '' ,information : '' } resp=Typhoeus::Request.post(apiurl,body:body) puts resp.body |