ippanel / php-rest-sdk

ippanel php rest api SDK
BSD 3-Clause "New" or "Revised" License
30 stars 15 forks source link

I use the api key for send sms and I get this error : Unmarshal type error: expected=string, got=number, field=values, offset=122 #1

Open RaminEgh opened 3 years ago

RaminEgh commented 3 years ago

my code : $client = new \IPPanel\Client(self::SMS_API_KEY); $credit = $client->sendPattern("oaa78tdvk5", "+985000125475", "+989907443545", ['verification-code' => 232333]);

enaeim commented 3 years ago

I have exactly the same problem. With only a small difference: offset=180

enaeim commented 3 years ago

I found the problem: Use string '232333' instead of integer 232333

FaridAghili commented 3 years ago

Check this out: https://github.com/pishran/ippanel-client

Fixed all known issues and rewritten for PHP 7.0 and 8.0.