forked from Yumpu/Yumpu-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
83 lines (81 loc) · 4.9 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/** config array
*
* token - user token provided by yumpu;
* returnFormat - the response data format: array or json; default is array;
* endpointDomain - the yumpu domain for the api methods;
* endpointSearchDomain - the yumpu domain for the search api method;
* debug - wether to write requests logs ot not; default is FALSE;
* useCurl - wether to use CURL method or non CURL methods for request to yumpu api; default is TRUE;
* logFilePath - path to the log file ;
* uploadPath - pdfs' path location;
* yumpuEndpoints - full paths array for the yumpu api methods;
*/
$config = array(
'token' => getenv('token'), // set your token
'returnFormat' => 'array',
'endpointDomain' => 'https://api.yumpu.com/2.0/',
'endpointSearchDomain' => 'https://search.yumpu.com/2.0/',
'debug' => FALSE,
'useCurl' => TRUE,
'logFilePath' => 'yumpu_log.txt',
'uploadPath' => '',
);
$config['yumpuEndpoints'] = array(
'user/get' => $config['endpointDomain'] . 'user.json',
'user/post' => $config['endpointDomain'] . 'user.json',
'user/put' => $config['endpointDomain'] . 'user.json',
'document/get' => $config['endpointDomain'] . 'document.json',
'document/post/file' => $config['endpointDomain'] . 'document/file.json',
'document/post/url' => $config['endpointDomain'] . 'document/url.json',
'document/progress' => $config['endpointDomain'] . 'document/progress.json',
'documents/get' => $config['endpointDomain'] . 'documents.json',
'document/delete' => $config['endpointDomain'] . 'document.json',
'document/put' => $config['endpointDomain'] . 'document.json',
'document/hotspots/get' => $config['endpointDomain'] . 'document/hotspots.json',
'document/hotspot/get' => $config['endpointDomain'] . 'document/hotspot.json',
'document/hotspot/post' => $config['endpointDomain'] . 'document/hotspot.json',
'document/hotspot/delete' => $config['endpointDomain'] . 'document/hotspot.json',
'document/hotspot/put' => $config['endpointDomain'] . 'document/hotspot.json',
'collection/get' => $config['endpointDomain'] . 'collection.json',
'collection/post' => $config['endpointDomain'] . 'collection.json',
'collection/put' => $config['endpointDomain'] . 'collection.json',
'collection/delete' => $config['endpointDomain'] . 'collection.json',
'collections/get' => $config['endpointDomain'] . 'collections.json',
'section/get' => $config['endpointDomain'] . 'collection/section.json',
'section/post' => $config['endpointDomain'] . 'collection/section.json',
'section/put' => $config['endpointDomain'] . 'collection/section.json',
'section/delete' => $config['endpointDomain'] . 'collection/section.json',
'sectionDocument/post' => $config['endpointDomain'] . 'collection/section/document.json',
'sectionDocument/delete' => $config['endpointDomain'] . 'collection/section/document.json',
'categories/get' => $config['endpointDomain'] . 'document/categories.json',
'countries/get' => $config['endpointDomain'] . 'countries.json',
'languages/get' => $config['endpointDomain'] . 'document/languages.json',
'search/get' => $config['endpointSearchDomain'] . 'search.json',
'media/get' => $config['endpointDomain'] . 'media.json',
'media/put' => $config['endpointDomain'] . 'media.json',
'media/delete' => $config['endpointDomain'] . 'media.json',
'media/post' => $config['endpointDomain'] . 'media.json',
'medias/get' => $config['endpointDomain'] . 'medias.json',
'members/get' => $config['endpointDomain'] . 'account/members.json',
'subscriptions/get' => $config['endpointDomain'] . 'account/subscriptions.json',
'subscription/get' => $config['endpointDomain'] . 'account/subscription.json',
'subscription/put' => $config['endpointDomain'] . 'account/subscription.json',
'subscription/post' => $config['endpointDomain'] . 'account/subscription.json',
'subscription/delete' => $config['endpointDomain'] . 'account/subscription.json',
'accessTags/get' => $config['endpointDomain'] . 'account/access_tags.json',
'accessTag/get' => $config['endpointDomain'] . 'account/access_tag.json',
'accessTag/put' => $config['endpointDomain'] . 'account/access_tag.json',
'accessTag/delete' => $config['endpointDomain'] . 'account/access_tag.json',
'accessTag/post' => $config['endpointDomain'] . 'account/access_tag.json',
'member/get' => $config['endpointDomain'] . 'account/member.json',
'member/put' => $config['endpointDomain'] . 'account/member.json',
'member/delete' => $config['endpointDomain'] . 'account/member.json',
'member/post' => $config['endpointDomain'] . 'account/member.json',
'embeds/get' => $config['endpointDomain'] . 'embeds.json',
'embed/get' => $config['endpointDomain'] . 'embed.json',
'embed/post' => $config['endpointDomain'] . 'embed.json',
'embed/put' => $config['endpointDomain'] . 'embed.json',
'embed/delete' => $config['endpointDomain'] . 'embed.json'
);
?>