Skip to content

Commit bdd94da

Browse files
committed
Fix after QA
1 parent f3de222 commit bdd94da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/web/docs/example.md.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {{ '{' }} Client, {{service.name | caseUcfirst}} {{ '}' }} from "{{ language.params.npmPackage }}";
22

3-
let client = new Client();
3+
const client = new Client();
44

55
const {{ service.name | caseCamel }} = new {{service.name | caseUcfirst}}(client);
66

@@ -16,7 +16,7 @@ client
1616
{% endif %}
1717
{% if method.type == 'webAuth' %}// Go to OAuth provider login page
1818
{% endif %}
19-
{% if method.type == 'webAuth' %}{% elseif method.type == 'location' %}let result = {% else %}let promise = {% endif %}{{ service.name | caseCamel }}.{{ service.name | caseLower }}.{{ method.name | caseCamel }}({% for parameter in method.parameters.all %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{ parameter | paramExample }}{% endif %}{% endfor %});
19+
{% if method.type == 'webAuth' %}{% elseif method.type == 'location' %}const result = {% else %}const promise = {% endif %}{{ service.name | caseCamel }}.{{ method.name | caseCamel }}({% for parameter in method.parameters.all %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{ parameter | paramExample }}{% endif %}{% endfor %});
2020

2121
{% if method.type == 'webAuth' %}{% elseif method.type == 'location' %}console.log(result); // Resource URL{% else %}promise.then(function (response) {
2222
console.log(response); // Success

0 commit comments

Comments
 (0)