dev-master
9999999-devFortnox API Implement in PHP
GNU
The Requires
- php >=5.4.0
- guzzlehttp/guzzle ^6.1
by Phu Hoang
1.0.0
1.0.0.0Fortnox API Implement in PHP
GNU
The Requires
- php >=5.4.0
- guzzlehttp/guzzle ^6.1
by Phu Hoang
Wallogit.com
2017 © Pedro PelĂĄez
Fortnox API Implement in PHP
Unofficial PHP wrapper for Fortnox API http://developer.fortnox.se/getting-started/, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist hmphu/fortnox
or add, (*4)
"hmphu/fortnox": "*"
to the require section of your composer.json., (*5)
First of all you need to register as a developer., (*6)
To register you just need to fill out this form., (*7)
Youâve got your Authorization-Code and your Client-Secret. These will be the keys to get the final Access-Token., (*8)
The Authorization-Code is valid for seven days before becoming invalid and can only be used once to retrieve the Access-Token., (*9)
If the Authorization-Code is used again after an Access-Token has been retrieved the Authorization-Code will become invalid and the integration will become deactivated., (*10)
The Access-Token combined with the Client-Secret is unique for your application and connects to a specific Fortnox account., (*11)
To retrieve your Access-Token you simply send a request to our API using the headers âAuthorization-Codeâ and âClient-Secretâ., (*12)
Hereâs an example using cURL, (*13)
curl -X "GET" "https://api.fortnox.se/3/" \
-H "Authorization-Code: YOUR_AUTHORIZATION_CODE" \
-H "Client-Secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Make with love to Fortnox, (*14)
In 2016, PhuHM (@hmphu), http://hmphu.com, (*15)
Having trouble? [contact me][3], (*16)
Fortnox API Implement in PHP
GNU
Fortnox API Implement in PHP
GNU