-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlitzenApiWrapper.php
More file actions
55 lines (43 loc) · 1.57 KB
/
BlitzenApiWrapper.php
File metadata and controls
55 lines (43 loc) · 1.57 KB
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
<?php
/* Blitzen
* Jordan Clark 2015
*/
require_once('BlitzenApiWrapperBase.php');
class BlitzenApiWrapper extends BlitzenApiWrapperBase {
public function __construct($client_id, $client_secret, $subdomain = Null, $access_token = Null, $refresh_token = Null){
parent::__construct($client_id, $client_secret, $subdomain, $access_token, $refresh_token);
}
public function setAccessToken($access_token){
$this->access_token = $access_token;
}
public function getForms(){
return $this->getHelper($this->getFullUrl('forms'));
}
public function getForm($formId){
return $this->getHelper($this->getFullUrl("forms/$formId"));
}
public function getFormFields($formId){
return $this->getHelper($this->getFullUrl("forms/$formId/field"));
}
public function getSubmissions($formId){
return $this->getHelper($this->getFullUrl("forms/$formId/submission"));
}
public function getSubmission($formId, $submissionId){
return $this->getHelper($this->getFullUrl("forms/$formId/submission/$submissionId"));
}
public function getUserStats(){
return $this->getHelper($this->getFullUrl("auth/stats"));
}
public function getContacts(){
return $this->getHelper($this->getFullUrl("contacts"));
}
public function getNotifications(){
return $this->getHelper($this->getFullUrl('notifications'));
}
public function getUsers(){
return $this->getHelper($this->getFullUrl('users/get'));
}
public function getTriggers(){
return $this->getHelper($this->getFullUrl('events/trigger'));
}
}