rajaongkir | Advanced RajaOngkir API PHP Class | REST library
kandi X-RAY | rajaongkir Summary
kandi X-RAY | rajaongkir Summary
RajaOngkir API PHP Class Library berfungsi untuk melakukan request API RajaOngkir.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get cost .
- Send a request to the API .
- Get International Origin
- Get international origins
- Get International Destination
- Get a dealbill
- Get Subdist
- Get Substricts
- Set account type
- Get all cities
rajaongkir Key Features
rajaongkir Examples and Code Snippets
use Steevenz\Rajaongkir;
/*
* --------------------------------------------------------------
* Inisiasi Class RajaOngkir
*
* Tipe account yang tersedia di RajaOngkir:
* - starter (tidak support international dan metode waybill)
* - basic
* -
composer require steevenz/rajaongkir
require_once('path/to/steevenz/rajaongkir/src/autoload.php');
Community Discussions
Trending Discussions on rajaongkir
QUESTION
I tried to get data from this api https://api.rajaongkir.com/starter/province and api key, i already put my api key correctly when requested the data. but the response was Invalid key.
here's my code :
here's the response
EDITi don't understand, it's ok if i use postman
...ANSWER
Answered 2021-Aug-02 at 12:25What does not work is the prefligth request with 'OPTIONS' HTTP type.
This request is done directly by you browser. A solution is to do the request on a NoeJS server and send back the data to the client.
You should not give your API key to the client anyway.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rajaongkir
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page