Skip to content

Latest commit

 

History

History
150 lines (102 loc) · 7.39 KB

README.md

File metadata and controls

150 lines (102 loc) · 7.39 KB

BrandingSDK

(branding)

Overview

Available Operations

get_branding

Gets the brand properties for the specified account.

Example Usage

from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.branding.get_branding(account_id="4de607f4-575e-4ce3-9d41-d6af8398a770")

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.GetBrandingResponse

Errors

Error Type Status Code Content Type
models.SDKError 4XX, 5XX */*

create_branding

Creates the brand properties for the specified account.

Example Usage

from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.branding.create_branding(account_id="3226d1b6-78c9-4a27-88d7-faf928bc4492", request_body={
    "colors": {
        "light": {
            "accent": "#111111",
        },
        "dark": {
            "accent": "#ffffff",
        },
    },
})

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
request_body models.CreateBrandingCreateBrandingRequest ✔️ N/A
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.CreateBrandingResponse

Errors

Error Type Status Code Content Type
models.SDKError 4XX, 5XX */*

update_branding

Updates the brand properties for the specified account.

Example Usage

from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.branding.update_branding(account_id="3c399c04-daff-4fba-90b7-bc0d2d264610", request_body={
    "colors": {
        "light": {
            "accent": "#111111",
        },
        "dark": {
            "accent": "#ffffff",
        },
    },
})

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
request_body models.UpdateBrandingPatchBrandingRequest ✔️ N/A
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.UpdateBrandingResponse

Errors

Error Type Status Code Content Type
models.SDKError 4XX, 5XX */*