Module shopify.admin

ballerinax/shopify.admin Ballerina library

1.2.0

Overview

This is a generated connector for Shopify Admin API v2021-10 OpenAPI specification. The Admin API lets you build apps and integrations that extend and enhance the Shopify admin. As the primary way that apps and services interact with Shopify, the Admin API allows you to add your own features to the Shopify user experience. Read and write Shopify store information, including products, inventory, orders, shipping, and more.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Shopify Admin connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/shopify.admin module into the Ballerina project.

Copy
import ballerinax/shopify.admin;

Step 2: Create a new connector instance

Create a admin:ApiKeysConfig with the API key obtained, and initialize the connector with it.

Copy
admin:ApiKeysConfig config = {
    xShopifyAccessToken: "<API_KEY>"
}
admin:Client baseClient = check new Client(config);

Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.

    Following is an example on how to retrieve a list of categories using the connector.

    List Categories

    Copy
    public function main() returns error? {
        admin:CustomerList response = check baseClient->getCustomers();
        log:printInfo(response.toString());
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/shopify.admin;Copy

Metadata

Released date: almost 3 years ago

Version: 1.2.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.0.0

GraalVM compatible: Yes


Pull count

Total: 2496

Current verison: 1833


Weekly downloads


Source repository


Keywords

Commerce/eCommerce

Cost/Paid


Contributors

Other versions

See more...