AOTG API Authenticate: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 9: Line 9:


==Code Snippets==
==Code Snippets==
{{AOTGApiCodeSnippetTab
<tabber>
C# (with RestSharp)=
|RestSharp=
<syntaxhighlight lang="C#">
<syntaxhighlight lang="C#">
var client = new RestClient("http://aotg.cloud:8080/api/public/v1/TokenAuth/Authenticate");
var client = new RestClient("http://aotg.cloud:8080/api/public/v1/TokenAuth/Authenticate");
Line 19: Line 19:
IRestResponse response = client.Execute(request);
IRestResponse response = client.Execute(request);
</syntaxhighlight>
</syntaxhighlight>
|PHPcURL=
|-|
PHP cURL=
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
<?php
<?php
Line 53: Line 52:
}
}
</syntaxhighlight>
</syntaxhighlight>
|PHPHttp=
|-|
PHP Http Request=
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
<?php
<?php
Line 82: Line 80:
}
}
</syntaxhighlight>
</syntaxhighlight>
}}
</tabber>


==Response==
==Response==