Comments (8)
from openapi-sdk-php.
string(353) "93ABDCE5-4D1A-4861-B38E-D31BDC709E4Bdypnsapi.aliyuncs.comInvalidVersion
Specified parameter Version is not valid."
from openapi-sdk-php.
我这边因为项目是php5.6,不能用composer方式引入项目,所以只能去研究阿里云一键取号Api的接口参数去请求,
结果其他请求参数都没有问题,参数Version就报错,https://api.aliyun.com/new?spm=a2c4g.11186623.2.13.2fc27861OpQnPn#/?product=Dypnsapi&version=2017-05-25&api=GetMobile¶ms={%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
from openapi-sdk-php.
from openapi-sdk-php.
就是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¶ms={%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.
from openapi-sdk-php.
搞定了,谢谢
from openapi-sdk-php.
搞定了,谢谢
好的,我们强烈建议使用 Composer 管理器安装,这样会根据你的环境安装最适合你的版本,如果你只是下载引入,那会要求使用较新的版本。
from openapi-sdk-php.
Related Issues (20)
- describeFaceVerify接口地域选择cn-hongkong时提示:The request has failed due to a temporary failure of the server. HOT 1
- 阿里云 Composer 全量镜像链接不够详细 HOT 1
- Status code must be an integer value between 1xx and 5xx.
- demo 里面 vendor/autoload.php 这个到底是在 sdk 文件夹的哪个位置? HOT 1
- DTS API does not follow the shared region setting defined in DefaultClient
- 在PHP8环境中 MNS队列调用报告libxml_disable_entity_loader函数已被弃用
- 新版sdk示例如何让返回信息显示中文
- 希望能够兼容php8 HOT 1
- .....
- 你们的 API 响应规范这么玩的吗?驼峰也就算了,首字母还大写??? HOT 1
- ...... HOT 2
- SDK很多 很全 , 是否可以补充一下文档 HOT 2
- AlibabaCloud\Tea\Utils\Utils::isUnset(): Argument #1 ($value) cannot be passed by reference
- 各种PHP版本都装不上
- nlp调用一直返回 SignatureDoesNotMatch: Specified signature is not matched with our calculation
- 不支持php8.1 HOT 4
- When will it be compatible with php8?hurry up!!! HOT 3
- 什么时候集成最新的ICE的SDK.
- ROA Request invalid signature : resolveBody never add Content-MD5 if isset $this->options['body']
- 验证码 2.0 相关的代码还未更新
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-sdk-php.