Getting Started
You can install the package using your favorite package manager.
To get started, you need to create a new instance of the FirmhouseClient
and provide it with an API token.
You can use both Storefront and Write access tokens to interact with the Firmhouse API. Depending on the access type, you can perform different operations. If you try to perform an operation that is not allowed by the access type, you will receive an error.
Storefront Access
This access type is used for Storefront operations such as fetching products, creating carts, adding products to carts etc.
Available Resources
client.carts
: CartsResourceclient.products
: ProductsResourceclient.plans
: PlansResourceclient.selfServiceCenterToken
: SelfServiceCenterTokenResource
Write Access
This access type has access to all resources and operations available in the Firmhouse API.
You should make sure that your write access token is kept secure and not exposed to the public.
Available Resources
client.subscriptions
: SubscriptionsResourceclient.invoices
: InvoicesResourceclient.projects
: ProjectsResource
All resources available with Storefront access are also available with Write access.
Last updated