File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,18 @@ import (
1616)
1717
1818func main() {
19- client := client.NewClient()
20-
19+ client := client.New(
2120{% if method .auth | length > 0 %}
22- client.SetEndpoint ("{{ spec .endpointDocs | raw }}") // Your API Endpoint
21+ client.WithEndpoint ("{{ spec .endpointDocs | raw }}") // Your API Endpoint
2322{% for node in method .auth %}
2423{% for key ,header in node | keys %}
25- client.Set {{header }}("{{node [header ][' x-appwrite' ]['demo' ] | raw }}") // {{node [header ].description}}
24+ client.With {{header }}("{{node [header ][' x-appwrite' ]['demo' ] | raw }}") // {{node [header ].description}}
2625{% endfor %}
2726{% endfor %}
27+ )
2828
2929{% endif %}
30- service := {{ service .name | caseLower }}.New{{ service . name | caseUcfirst }} (client)
30+ service := {{ service .name | caseLower }}.New(client)
3131 response, error := service.{{ method .name | caseUcfirst }}(
3232{% for parameter in method .parameters .all %}
3333{% if parameter .required %}
You can’t perform that action at this time.
0 commit comments