searchCustomer360
Retrieves the Customer 360 data.
Retrieves a list of Customer 360 data.
/{baseSiteId}/users/{userId}/customer360
Usage and SDK Samples
curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:9001/assistedservicewebservices/{baseSiteId}/users/{userId}/customer360"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ASMCustomer360Api;
import java.io.File;
import java.util.*;
public class ASMCustomer360ApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2_Password
OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");
// Configure OAuth2 access token for authorization: oauth2_client_credentials
OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");
ASMCustomer360Api apiInstance = new ASMCustomer360Api();
Customer360QueryList body = ; // Customer360QueryList |
String baseSiteId = baseSiteId_example; // String | Base site ID
String userId = userId_example; // String | User identifier
try {
Customer360List result = apiInstance.searchCustomer360(body, baseSiteId, userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ASMCustomer360Api#searchCustomer360");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ASMCustomer360Api;
public class ASMCustomer360ApiExample {
public static void main(String[] args) {
ASMCustomer360Api apiInstance = new ASMCustomer360Api();
Customer360QueryList body = ; // Customer360QueryList |
String baseSiteId = baseSiteId_example; // String | Base site ID
String userId = userId_example; // String | User identifier
try {
Customer360List result = apiInstance.searchCustomer360(body, baseSiteId, userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ASMCustomer360Api#searchCustomer360");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Customer360QueryList *body = ; //
String *baseSiteId = baseSiteId_example; // Base site ID
String *userId = userId_example; // User identifier
ASMCustomer360Api *apiInstance = [[ASMCustomer360Api alloc] init];
// Retrieves the Customer 360 data.
[apiInstance searchCustomer360With:body
baseSiteId:baseSiteId
userId:userId
completionHandler: ^(Customer360List output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AssistedWebservices = require('assisted_webservices');
var defaultClient = AssistedWebservices.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"
var api = new AssistedWebservices.ASMCustomer360Api()
var body = ; // {{Customer360QueryList}}
var baseSiteId = baseSiteId_example; // {{String}} Base site ID
var userId = userId_example; // {{String}} User identifier
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchCustomer360(bodybaseSiteIduserId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class searchCustomer360Example
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_Password
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ASMCustomer360Api();
var body = new Customer360QueryList(); // Customer360QueryList |
var baseSiteId = baseSiteId_example; // String | Base site ID
var userId = userId_example; // String | User identifier
try
{
// Retrieves the Customer 360 data.
Customer360List result = apiInstance.searchCustomer360(body, baseSiteId, userId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ASMCustomer360Api.searchCustomer360: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\ApiASMCustomer360Api();
$body = ; // Customer360QueryList |
$baseSiteId = baseSiteId_example; // String | Base site ID
$userId = userId_example; // String | User identifier
try {
$result = $api_instance->searchCustomer360($body, $baseSiteId, $userId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ASMCustomer360Api->searchCustomer360: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ASMCustomer360Api;
# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::ASMCustomer360Api->new();
my $body = WWW::SwaggerClient::Object::Customer360QueryList->new(); # Customer360QueryList |
my $baseSiteId = baseSiteId_example; # String | Base site ID
my $userId = userId_example; # String | User identifier
eval {
my $result = $api_instance->searchCustomer360(body => $body, baseSiteId => $baseSiteId, userId => $userId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ASMCustomer360Api->searchCustomer360: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.ASMCustomer360Api()
body = # Customer360QueryList |
baseSiteId = baseSiteId_example # String | Base site ID
userId = userId_example # String | User identifier
try:
# Retrieves the Customer 360 data.
api_response = api_instance.search_customer360(body, baseSiteId, userId)
pprint(api_response)
except ApiException as e:
print("Exception when calling ASMCustomer360Api->searchCustomer360: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| baseSiteId* |
String
Base site ID
Required
|
| userId* |
String
User identifier
Required
|
| Name | Description |
|---|---|
| body * |