securitiesSecurityIdTokenPost
+ ++
/securities/{securityId}/token
+ +
Usage and SDK Samples
+ + + +curl -X POST \
+ -H "Accept: application/json,application/problem+json" \
+ -H "Content-Type: application/x-www-form-urlencoded" \
+ "https://example.com/capif-security/v1/securities/{securityId}/token"
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DefaultApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DefaultApiExample {
+ public static void main(String[] args) {
+
+ // Create an instance of the API class
+ DefaultApi apiInstance = new DefaultApi();
+ String securityId = securityId_example; // String | Identifier of an individual API invoker
+ String clientId = clientId_example; // String |
+ String grantType = grantType_example; // String |
+ String clientSecret = clientSecret_example; // String |
+ String scope = scope_example; // String |
+
+ try {
+ AccessTokenRsp result = apiInstance.securitiesSecurityIdTokenPost(securityId, clientId, grantType, clientSecret, scope);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#securitiesSecurityIdTokenPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String securityId = new String(); // String | Identifier of an individual API invoker
+final String clientId = new String(); // String |
+final String grantType = new String(); // String |
+final String clientSecret = new String(); // String |
+final String scope = new String(); // String |
+
+try {
+ final result = await api_instance.securitiesSecurityIdTokenPost(securityId, clientId, grantType, clientSecret, scope);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->securitiesSecurityIdTokenPost: $e\n');
+}
+
+
+ import org.openapitools.client.api.DefaultApi;
+
+public class DefaultApiExample {
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String securityId = securityId_example; // String | Identifier of an individual API invoker
+ String clientId = clientId_example; // String |
+ String grantType = grantType_example; // String |
+ String clientSecret = clientSecret_example; // String |
+ String scope = scope_example; // String |
+
+ try {
+ AccessTokenRsp result = apiInstance.securitiesSecurityIdTokenPost(securityId, clientId, grantType, clientSecret, scope);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#securitiesSecurityIdTokenPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+// Create an instance of the API class
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+String *securityId = securityId_example; // Identifier of an individual API invoker (default to null)
+String *clientId = clientId_example; // (default to null)
+String *grantType = grantType_example; // (default to null)
+String *clientSecret = clientSecret_example; // (optional) (default to null)
+String *scope = scope_example; // (optional) (default to null)
+
+[apiInstance securitiesSecurityIdTokenPostWith:securityId
+ clientId:clientId
+ grantType:grantType
+ clientSecret:clientSecret
+ scope:scope
+ completionHandler: ^(AccessTokenRsp output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+ var CapifSecurityApi = require('capif_security_api');
+
+// Create an instance of the API class
+var api = new CapifSecurityApi.DefaultApi()
+var securityId = securityId_example; // {String} Identifier of an individual API invoker
+var clientId = clientId_example; // {String}
+var grantType = grantType_example; // {String}
+var opts = {
+ 'clientSecret': clientSecret_example, // {String}
+ 'scope': scope_example // {String}
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.securitiesSecurityIdTokenPost(securityId, clientId, grantType, opts, callback);
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class securitiesSecurityIdTokenPostExample
+ {
+ public void main()
+ {
+
+ // Create an instance of the API class
+ var apiInstance = new DefaultApi();
+ var securityId = securityId_example; // String | Identifier of an individual API invoker (default to null)
+ var clientId = clientId_example; // String | (default to null)
+ var grantType = grantType_example; // String | (default to null)
+ var clientSecret = clientSecret_example; // String | (optional) (default to null)
+ var scope = scope_example; // String | (optional) (default to null)
+
+ try {
+ AccessTokenRsp result = apiInstance.securitiesSecurityIdTokenPost(securityId, clientId, grantType, clientSecret, scope);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DefaultApi.securitiesSecurityIdTokenPost: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DefaultApi();
+$securityId = securityId_example; // String | Identifier of an individual API invoker
+$clientId = clientId_example; // String |
+$grantType = grantType_example; // String |
+$clientSecret = clientSecret_example; // String |
+$scope = scope_example; // String |
+
+try {
+ $result = $api_instance->securitiesSecurityIdTokenPost($securityId, $clientId, $grantType, $clientSecret, $scope);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->securitiesSecurityIdTokenPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DefaultApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
+my $securityId = securityId_example; # String | Identifier of an individual API invoker
+my $clientId = clientId_example; # String |
+my $grantType = grantType_example; # String |
+my $clientSecret = clientSecret_example; # String |
+my $scope = scope_example; # String |
+
+eval {
+ my $result = $api_instance->securitiesSecurityIdTokenPost(securityId => $securityId, clientId => $clientId, grantType => $grantType, clientSecret => $clientSecret, scope => $scope);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->securitiesSecurityIdTokenPost: $@\n";
+}
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.DefaultApi()
+securityId = securityId_example # String | Identifier of an individual API invoker (default to null)
+clientId = clientId_example # String | (default to null)
+grantType = grantType_example # String | (default to null)
+clientSecret = clientSecret_example # String | (optional) (default to null)
+scope = scope_example # String | (optional) (default to null)
+
+try:
+ api_response = api_instance.securities_security_id_token_post(securityId, clientId, grantType, clientSecret=clientSecret, scope=scope)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DefaultApi->securitiesSecurityIdTokenPost: %s\n" % e)
+ extern crate DefaultApi;
+
+pub fn main() {
+ let securityId = securityId_example; // String
+ let clientId = clientId_example; // String
+ let grantType = grantType_example; // String
+ let clientSecret = clientSecret_example; // String
+ let scope = scope_example; // String
+
+ let mut context = DefaultApi::Context::default();
+ let result = client.securitiesSecurityIdTokenPost(securityId, clientId, grantType, clientSecret, scope, &context).wait();
+
+ println!("{:?}", result);
+}
+
+ Scopes
+Parameters
+ +Name | +Description | +
---|---|
securityId* | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+Identifier of an individual API invoker
+
+
+ Required
+
+ |
+
Name | +Description | +
---|---|
client_id* | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+ |
+
client_secret | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+ |
+
grant_type* | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+ Enum:
+ client_credentials
+
+
+ Required
+
+ |
+
scope | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+ |
+
Responses
+ + + + + + + + +Name | +Type | +Format | +Description | +
---|---|---|---|
Location | +String | ++ | An alternative URI of the resource. | +
Name | +Type | +Format | +Description | +
---|---|---|---|
Location | +String | ++ | An alternative URI of the resource. | +