forked from aptoma/drpublish-api-client-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
18 lines (14 loc) · 809 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Installing the client
* Add the content from the "lib" directory to your project
* Using the generic, extensible client
- include core/DrPublishApiClient.php
- instantiate an object of type DrPublishApiClient with the parameters 1.) DrPublish API URL 2.) publication name
$drPublishApiClient = new DrPublishApiClient('http://my.search.server:9000', 'MyPublication');
- set medium
$drPublishApiClient->setMedium('mobile');
- do your stuff as described in the documentation
* Using the web client
- include web/DrPublishApiClient.php
- instantiate an object of type DrPublishApiClient with the parameters 1.) DrPublish API URL 2.) publication name
$drPublishApiClient = new DrPublishApiClient('http://my.search.server:9000', 'MyPublication');
- do your stuff as described in the documentation