frapi_client

Component ID

1349416

Component name

frapi_client

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Frapi_client provides a simple interface for making REST API calls to a frapi server.

Known issues

  • Only supports GET requests fully. POST support involves a workaround to send parameters and this requires special handling on the server (less than ideal). No other HTTP request methods supported as yet.
  • Only supports communicating with a single frapi server.

Installation

  • Enable the module in admin/build/modules (under Other).
  • Configure for your frapi server in admin/settings/frapi_client:
    • FRAPI Server URL
    • Username
    • API Key

You can then make calls to your frapi server:

$results = frapi_client_call("/product/$prod_id", 'GET', 
                                    array('extras' => 'special offers'));
# using default method: GET and no parameters:
$results = frapi_client_call("/product/$prod_id");