Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sensetecnic/hypercat-php
PHP client binding for Hypercat
https://github.com/sensetecnic/hypercat-php
Last synced: 13 days ago
JSON representation
PHP client binding for Hypercat
- Host: GitHub
- URL: https://github.com/sensetecnic/hypercat-php
- Owner: SenseTecnic
- Created: 2013-10-30T23:05:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-03T18:08:44.000Z (about 11 years ago)
- Last Synced: 2024-03-26T17:19:28.841Z (10 months ago)
- Language: PHP
- Size: 121 KB
- Stars: 1
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hypercat-php
============PHP client binding for the Hypercat (Interop) API.
Example Usage
-------------1- Retrieving a Catalogue
```
$config=("key"=> "api_key_here",
"baseUrl"=> "base_url_here",
"catalogueUri"=> "catalogue_uri_here"
);
$client = new Hypercat($config);
$offset = 0; //set page offset to 0
$limit = 10; //set page limit to 10
$catalogue = $client->getCatalogue($offset, $limit); //returns JSON response object
```
2- Catalogue Simple Search* The accepted simple search parameters include: "rel", "val" and "href". And they are optional.
```
$config={"key"=> "api_key_here",
"baseUrl"=> "base_url_here",
"catalogueUri"=> "catalogue_uri_here"
};
$client = new Hypercat($config);
$offset = 0; //set page offset to 0
$limit = 10; //set page limit to 10// Set search parameters
$param={"rel"=> "rel_here",
"val"=> "vall_here",
"href"=> "href_here"
};
$catalogue = $client->searchCatalogue($param, $offset, $limit); //returns JSON response object
```