Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.42 KB

README.md

File metadata and controls

54 lines (33 loc) · 1.42 KB

PolarOrganizations

(customerPortal->organizations)

Overview

Available Operations

  • get - Get Organization

get

Get a customer portal's organization by slug.

Example Usage

declare(strict_types=1);

require 'vendor/autoload.php';

use Polar;

$security = '<YOUR_BEARER_TOKEN_HERE>';

$sdk = Polar\Polar::builder()->setSecurity($security)->build();



$response = $sdk->customerPortal->organizations->get(
    slug: '<value>'
);

if ($response->organization !== null) {
    // handle response
}

Parameters

Parameter Type Required Description
slug string ✔️ The organization slug.

Response

?Operations\CustomerPortalOrganizationsGetResponse

Errors

Error Type Status Code Content Type
Errors\ResourceNotFound 404 application/json
Errors\HTTPValidationError 422 application/json
Errors\APIException 4XX, 5XX */*