Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.03 KB

QRCodesApi.md

File metadata and controls

68 lines (46 loc) · 2.03 KB

URLR\QRCodesApi

All URIs are relative to https://urlr.me/api/v2, except if the operation defines another base path.

Method HTTP request Description
qrcodeCreate() POST /qrcodes Create a QR Code

qrcodeCreate()

qrcodeCreate($qrcodeCreateRequest): \SplFileObject

Create a QR Code

Example

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


// Configure API key authorization: ApiKeyAuth
$config = URLR\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = URLR\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');


$apiInstance = new URLR\Api\QRCodesApi(
    // 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
);
$qrcodeCreateRequest = new \URLR\Model\QrcodeCreateRequestOneOf(); // \URLR\Model\QrcodeCreateRequest | Info of the QR Code to create

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

Parameters

Name Type Description Notes
qrcodeCreateRequest \URLR\Model\QrcodeCreateRequest Info of the QR Code to create [optional]

Return type

\SplFileObject

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: image/png, image/webp, image/svg+xml, application/problem+json

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