Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 2.08 KB

BatchRequestsApi.md

File metadata and controls

70 lines (46 loc) · 2.08 KB

BeLenka\SAP\ProductODV4\BatchRequestsApi

All URIs are relative to https://:/sap/opu/odata4/sap/api_product/srvd_a2x/sap/product/0002, except if the operation defines another base path.

Method HTTP request Description
batchPost() POST /$batch Send a group of requests

batchPost()

batchPost(): string

Send a group of requests

Group multiple requests into a single request payload, see Batch Requests. Please note that "Try it out" is not supported for this request.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: BasicAuth
$config = BeLenka\SAP\ProductODV4\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure OAuth2 access token for authorization: OAuth2Auth
$config = BeLenka\SAP\ProductODV4\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new BeLenka\SAP\ProductODV4\Api\BatchRequestsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->batchPost();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BatchRequestsApi->batchPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

BasicAuth, OAuth2Auth

HTTP request headers

  • Content-Type: multipart/mixed;boundary=request-separator
  • Accept: multipart/mixed, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]