2017 © Pedro Peláez
 

library restful-api-request

ApiRestClient is a simple Lib to talk with an API Rest

image

feusebio/restful-api-request

ApiRestClient is a simple Lib to talk with an API Rest

  • Friday, April 28, 2017
  • by feusebio
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Latest Stable Version Latest Unstable Version Total Downloads, (*1)

ApiRestClient

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)

  • Use Httpful Rest Client Lib (http://phphttpclient.com/)
  • Use most popular HTTP methods (GET/POST/UPDATE/DELETE)
  • Do CRUD operations

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)

The Versions

28/04 2017

dev-master

9999999-dev

ApiRestClient is a simple Lib to talk with an API Rest

  Sources   Download

MIT

The Requires

 

api curl rest http restful requests client api