@@ -30,6 +30,9 @@ |
||
30 | 30 | return $data['id']; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $z |
|
35 | + */ |
|
33 | 36 | private function getNodes($z, $flowJson) |
34 | 37 | { |
35 | 38 | $rawNodes = json_decode($flowJson, true); |
@@ -24,16 +24,26 @@ |
||
24 | 24 | return $this->makeRequest('GET', $path, [], null); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $path |
|
29 | + */ |
|
27 | 30 | public function formPost($path, $data, $token = null) |
28 | 31 | { |
29 | 32 | return $this->makeRequest('POST', $path, ['form_params' => $data], $token); |
30 | 33 | } |
31 | 34 | |
35 | + /** |
|
36 | + * @param string $path |
|
37 | + * @param OAuthToken $token |
|
38 | + */ |
|
32 | 39 | public function jsonPost($path, $data, $token = null) |
33 | 40 | { |
34 | 41 | return $this->makeRequest('POST', $path, ['json' => $data], $token); |
35 | 42 | } |
36 | 43 | |
44 | + /** |
|
45 | + * @param string $method |
|
46 | + */ |
|
37 | 47 | private function makeRequest($method, $path, $extraOptions = [], $token = null) |
38 | 48 | { |
39 | 49 | $options = [ |