ballerinax/ebay.recommendation Ballerina library

1.5.1

Overview

This is a generated connector for Ebay Recommendation API v1.1.0 OpenAPI specification. The Ebay Recommendation API returns information that sellers can use to configure Promoted Listings ad campaigns. The Recommendation API currently has a single recommendation type, AD, that returns information pertaining to Promoted Listings ad campaigns. Seller can use the recommendations returned as guidelines for setting up campaigns. In the eBay marketplace, where an increased visibility directly correlates to the buyer conversion rate, information returned with the AD recommendation type can help you know which listings to promote and how to configure ad campaigns. API documentation

Prerequisites

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

Quickstart

To use the ballerinax/ebay.recommendation connector in your Ballerina application, update the .bal file as follows:

  1. Import the module
Copy
import ballerinax/ebay.recommendation;

Step 2: Create a new connector instance

Create a recommendation:ClientConfig with the OAuth2 tokens obtained, and initialize the connector with it.

Copy
configurable http:BearerTokenConfig & readonly auth = ?;
recommendation:ClientConfig clientConfig = {auth: auth};
recommendation:Client baseClient = check new Client(clientConfig);

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 get information that can help sellers optimize listing configurations.

Copy
public function main() {
    recommendation:PagedListingRecommendationCollection response = check baseClient->findListingRecommendations(xEbayCMarketplaceId, listingIds);
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/ebay.recommendation;Copy

Metadata

Released date: 12 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 0

Current verison: 0


Weekly downloads


Source repository


Keywords

Commerce/eCommerce

Cost/Freemium


Contributors

Other versions

See more...