File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
templates/cli/app/services Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 94
94
$params[' {{ parameter . name }}' ] = ${{ parameter.name | caseCamel }};
95
95
{% endfor %}
96
96
97
+ {% if method.type == ' location ' %}
98
+
99
+ $params[' project ' ] = $client->getPreference(' X - Appwrite - Project ' );
100
+ $params[' key ' ] = $client->getPreference(' X - Appwrite - Key ' );
101
+ $path = $client->getPreference(Client::PREFERENCE_ENDPOINT).$path . "?" . http_build_query($params);
102
+ echo $path;
103
+
104
+ {% else %}
105
+
97
106
$response = $client->call(Client::METHOD_{{ method.method | caseUpper }}, $path, [
98
107
{% for parameter in method.parameters.header %}
99
108
' {{ parameter . name }}' => ${{ parameter.name | caseCamel }},
@@ -103,12 +112,14 @@ $cli
103
112
{% endfor %}
104
113
], $params);
105
114
115
+ $parser->parseResponse($response);
116
+
117
+ {% endif %}
118
+
106
119
{% if method.packaging %}
107
120
unlink($archive_file_path); // as we already obtained a tar.gz
108
121
unlink($archive_file_path.' . gz ' );
109
122
{% endif %}
110
-
111
- $parser->parseResponse($response);
112
123
});
113
124
114
125
{% endfor %}
You can’t perform that action at this time.
0 commit comments