Retrieves Scripts.
curl -X GET\
-H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts?$top=&$skip=&$filter=&$inlinecount=&$expand="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;
import java.io.File;
import java.util.*;
public class ScriptsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ScriptsApi apiInstance = new ScriptsApi();
String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
Integer $top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
Integer $skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
String $filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
String $inlinecount = ; // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
String $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
try {
Wrapper result = apiInstance.scriptsGet(acceptLanguage, $top, $skip, $filter, $inlinecount, $expand);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ScriptsApi#scriptsGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ScriptsApi;
public class ScriptsApiExample {
public static void main(String[] args) {
ScriptsApi apiInstance = new ScriptsApi();
String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
Integer $top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
Integer $skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
String $filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
String $inlinecount = ; // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
String $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
try {
Wrapper result = apiInstance.scriptsGet(acceptLanguage, $top, $skip, $filter, $inlinecount, $expand);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ScriptsApi#scriptsGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *acceptLanguage = acceptLanguage_example; // Accept-Language header specifying the language localized data will be returned in. (optional)
Integer *$top = 56; // The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
Integer *$skip = 56; // The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
String *$filter = $filter_example; // A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html) (optional)
String *$inlinecount = ; // Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html) (optional)
String *$expand = $expand_example; // Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)
ScriptsApi *apiInstance = [[ScriptsApi alloc] init];
// View Scripts.
[apiInstance scriptsGetWith:acceptLanguage
$top:$top
$skip:$skip
$filter:$filter
$inlinecount:$inlinecount
$expand:$expand
completionHandler: ^(Wrapper output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new ScriptServiceApi.ScriptsApi()
var opts = {
'acceptLanguage': acceptLanguage_example, // {{String}} Accept-Language header specifying the language localized data will be returned in.
'$top': 56, // {{Integer}} The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
'$skip': 56, // {{Integer}} The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
'$filter': $filter_example, // {{String}} A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
'$inlinecount': , // {{String}} Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
'$expand': $expand_example // {{String}} Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.scriptsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class scriptsGetExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ScriptsApi();
var acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in. (optional)
var $top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
var $skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
var $filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html) (optional)
var $inlinecount = new String(); // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html) (optional)
var $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)
try
{
// View Scripts.
Wrapper result = apiInstance.scriptsGet(acceptLanguage, $top, $skip, $filter, $inlinecount, $expand);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ScriptsApi.scriptsGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\ApiScriptsApi();
$acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
$$top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
$$skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
$$filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
$$inlinecount = ; // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
$$expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
try {
$result = $api_instance->scriptsGet($acceptLanguage, $$top, $$skip, $$filter, $$inlinecount, $$expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ScriptsApi->scriptsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::ScriptsApi->new();
my $acceptLanguage = acceptLanguage_example; # String | Accept-Language header specifying the language localized data will be returned in.
my $$top = 56; # Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
my $$skip = 56; # Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
my $$filter = $filter_example; # String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
my $$inlinecount = ; # String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
my $$expand = $expand_example; # String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
eval {
my $result = $api_instance->scriptsGet(acceptLanguage => $acceptLanguage, $top => $$top, $skip => $$skip, $filter => $$filter, $inlinecount => $$inlinecount, $expand => $$expand);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ScriptsApi->scriptsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.ScriptsApi()
acceptLanguage = acceptLanguage_example # String | Accept-Language header specifying the language localized data will be returned in. (optional)
$top = 56 # Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
$skip = 56 # Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
$filter = $filter_example # String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html) (optional)
$inlinecount = # String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html) (optional)
$expand = $expand_example # String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)
try:
# View Scripts.
api_response = api_instance.scripts_get(acceptLanguage=acceptLanguage, $top=$top, $skip=$skip, $filter=$filter, $inlinecount=$inlinecount, $expand=$expand)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScriptsApi->scriptsGet: %s\n" % e)