{"repo":"shusaura85/fancourier-api","free":true,"listed":false,"github":"https://github.com/shusaura85/fancourier-api","clone":"git clone https://github.com/shusaura85/fancourier-api.git","description":"PHP library to work with the new Fan Courier API v2.0 (selfawb.ro / api.fancourier.ro)","language":"PHP","stars":27,"topics":["api-client","library","php","php-library","fancourier","json","json-api","courier","fan","fan-courier"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"FANCourier API v2.0 Table of contents - Information - Installation - Requirements - Composer - Usage - Authentication - Get estimated shipping cost - Create AWB - Create AWB in bulk - Track AWB - Track awb in bulk - FANBox - Print AWB (PDF) - Print AWB (ZPL) - Print AWB Html - Delete AWB - License Information This version of the library is designed for FANCourier API v2.0 (JSON based responses). The code works and there are examples for all API requests, however, the documentation is not yet ready. All requests have the method getData() that returns the unprocessed response of the API. Aditional functions depend on the response object type to return processed data. Installation Requirements PHP = 7.0 NOTE At the moment it's designed to work with PHP 7.0 and newer. However, the plan is to add type and return type declarations for all functions that will push the requirements to PHP 8.1 at the minimum Composer Require the package via composer Manual If used without composer, you will need to manually require the autoload.php file Usage At the moment complete and proper documentation is not yet available. However, there are examples for every request type you can make. Inside them you will also find comments with complete function list for each request , response and object . Authentication Create a new instance of Fancourier.php supplying the client id , username , password and token . Or you can use the test instance static method: The generated token has a life time of 24 hou","default_branch":null,"files":null,"tree":[],"storefront":"/r/shusaura85","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shusaura85/fancourier-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}