Code Monkey home page Code Monkey logo

Comments (8)

111Quentin avatar 111Quentin commented on June 5, 2024

image

from openapi-sdk-php.

111Quentin avatar 111Quentin commented on June 5, 2024

string(353) "93ABDCE5-4D1A-4861-B38E-D31BDC709E4Bdypnsapi.aliyuncs.comInvalidVersionSpecified parameter Version is not valid."

from openapi-sdk-php.

 avatar commented on June 5, 2024

我这边因为项目是php5.6,不能用composer方式引入项目,所以只能去研究阿里云一键取号Api的接口参数去请求,
结果其他请求参数都没有问题,参数Version就报错,https://api.aliyun.com/new?spm=a2c4g.11186623.2.13.2fc27861OpQnPn#/?product=Dypnsapi&version=2017-05-25&api=GetMobile&params={%22RegionId%22:%22cn-hangzhou%22}&tab=DEMO&lang=PHP 这个url里面的version是填 2017-05-25,我也是填这个,结果就报错了。 想问下version参数应该怎么填
image

支持版本是:2017-05-25
5.6 支持 Composer 安装,如果无法使用 Composer 安装,请下载引入:https://github.com/aliyun/openapi-sdk-php/blob/master/docs/zh-CN/1-Installation.md

from openapi-sdk-php.

111Quentin avatar 111Quentin commented on June 5, 2024

from openapi-sdk-php.

 avatar commented on June 5, 2024

就是composer方式可以安装,但是由于里面使用guzzlehttp方式请求接口,guzzlehttp类库是用php7+的语法,导致我这边无法用你们推荐的方式去请求一键取号接口。所以我这边只能去追源码看一键取号接口是怎么请求的,我把参数还有参数的加密都自己封装了一遍去请求,结果报version参数不合法,我version填的是2017-05-25,是没问题的。 但是我使用php7以上版本,用你们推荐的rpc去请求接口就能正常拿到手机号,这里填的version参数也是2017-05-25

------------------ 原始邮件 ------------------ 发件人: "宋神宗"<[email protected]>; 发送时间: 2020年7月25日(星期六) 晚上6:08 收件人: "aliyun/openapi-sdk-php"<[email protected]>; 抄送: "1551881447"<[email protected]>; "Author"<[email protected]>; 主题: Re: [aliyun/openapi-sdk-php] 阿里云一键取号API报 Specified parameter Version is not valid (#175) 我这边因为项目是php5.6,不能用composer方式引入项目,所以只能去研究阿里云一键取号Api的接口参数去请求, 结果其他请求参数都没有问题,参数Version就报错,https://api.aliyun.com/new?spm=a2c4g.11186623.2.13.2fc27861OpQnPn#/?product=Dypnsapi&version=2017-05-25&api=GetMobile&params={%22RegionId%22:%22cn-hangzhou%22}&tab=DEMO&lang=PHP 这个url里面的version是填 2017-05-25,我也是填这个,结果就报错了。 想问下version参数应该怎么填 支持版本是:2017-05-25 5.6 支持 Composer 安装,如果无法使用 Composer 安装,请下载引入:https://github.com/aliyun/openapi-sdk-php/blob/master/docs/zh-CN/1-Installation.md — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

你的项目的 guzzlehttp 是PHP7+的要求?阿里云SDK没有这个要求,建议检查一下依赖。

from openapi-sdk-php.

111Quentin avatar 111Quentin commented on June 5, 2024

from openapi-sdk-php.

111Quentin avatar 111Quentin commented on June 5, 2024

搞定了,谢谢

from openapi-sdk-php.

 avatar commented on June 5, 2024

搞定了,谢谢

好的,我们强烈建议使用 Composer 管理器安装,这样会根据你的环境安装最适合你的版本,如果你只是下载引入,那会要求使用较新的版本。

from openapi-sdk-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.