dev-master
9999999-devApiRestClient is a simple Lib to talk with an API Rest
MIT
The Requires
- php ^5.3.3
- nategood/httpful 0.2.20
api curl rest http restful requests client api
Wallogit.com
2017 © Pedro Peláez
ApiRestClient is a simple Lib to talk with an API Rest
ApiRestClient is a simple Lib to talk with API Rest., (*2)
This project was created to communicate with API CustoJusto.pt, by security reasons some data was omited. The user is free to use and make changes to communicate with other API., (*3)
Examples with CURL:, (*4)
curl -i -X POST "https://api......./v0/entries" -H "Authorization: Token token=XxxXXxxXxXXX" -H "Content-Type: application/json" -d ' { "title": "Escritório com 250m2 no Marquês", "description": "Fabuloso escritório com 250m2 no centro de Lisboa com ótimos acessos...", "type_id": "sell", "category_id": 1020, "image_ids": [13123123, 3123123, 231232, 2345356, 7867867], "location": { "region_id": 14, "zipcode": "1000", "area_id": 220 }, "partner_info": { "ad_id": "7", "group_id": "gg-45" }, "parameters": { "rooms": 6, "size": 25 } }', (*5)
Getting Data curl -i -X GET "https://apidev......./v0/types" -H "Authorization: Token token=XxxXXxxXxXXX", (*6)
List an entry curl -i -X GET "https://apidev....../v0/entries/12495697" -H "Authorization: Token token=XxxXXxxXxXXX", (*7)
ApiRestClient is a simple Lib to talk with an API Rest
MIT
api curl rest http restful requests client api