Skip to content

Commit

Permalink
Fix after QA
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Jun 22, 2022
1 parent f3de222 commit bdd94da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/web/docs/example.md.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {{ '{' }} Client, {{service.name | caseUcfirst}} {{ '}' }} from "{{ language.params.npmPackage }}";

let client = new Client();
const client = new Client();

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

Expand All @@ -16,7 +16,7 @@ client
{% endif %}
{% if method.type == 'webAuth' %}// Go to OAuth provider login page
{% endif %}
{% 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 %});
{% 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 %});

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

0 comments on commit bdd94da

Please sign in to comment.