Relative Content

Tag Archive for phpapi

Need help in debugging request and response in PHP calling an API

I need some help to resolve below php code. not sure what am i missing. I am trying to call an API through POST and in response i’m getting credentials are invalid. The same thing i tried in postman getting a response correctly. But with below code i with same credentials i’m getting a response as invalid credentials.

PHP keeps rounding up numbers

so I’m trying to create an API in PHP that can store discord server id along with some stuffs into a json file. But for some reason, it keeps rounding the discord server id. Doesn’t matter what I try, it keeps doing that.

numbers in page show “inf” till switch tabs

I have a problem showing the converted number from USD To BTC using API.
On Price page I have 3 Tabs (LifeTime , Monthly, Yearly)(Switchable) Each Tab Has 2 Tables (Basic, Professional).
For Each Tab, I use API to convert and show the BTC price (Both usd&btc Need to be Shown).