Class

Listings

Listings(client) → {Listings}

The Listings class exposes specialized methods to help developers to handle listings and listing requests.

Constructor

# new Listings(client) → {Listings}

Creates an instance of the Listings class.

Parameters:
Name Type Description
client ConnectClient

An instance of the ConnectClient class.

An instance of the Listings class.

Listings

Methods

# async cancelListingRequest(id) → {object}

Cancel the ListingRequest object identified by its id.

Parameters:
Name Type Description
id string

The unique identifier of the ListingRequest object.

The ListingRequest object.

object

# async completeListingRequest(id) → {object}

Complete the ListingRequest object identified by its id.

Parameters:
Name Type Description
id string

The unique identifier of the ListingRequest object.

The ListingRequest object.

object

# async createListingRequest(request) → {object}

Creates a new ListingRequest

Parameters:
Name Type Description
request object

The ListingRequest object.

The created ListingRequest object.

object

# async deployListingRequest(id) → {object}

Deploy the ListingRequest object identified by its id.

Parameters:
Name Type Description
id string

The unique identifier of the ListingRequest object.

The ListingRequest object.

object

# async getListingRequest(id) → {object}

Retrieve the ListingRequest object identified by its id.

Parameters:
Name Type Description
id string

The unique identifier of the ListingRequest object.

The ListingRequest object.

object

# async refineListingRequest(id) → {object}

Refine the ListingRequest object identified by its id.

Parameters:
Name Type Description
id string

The unique identifier of the ListingRequest object.

The ListingRequest object.

object

# async searchListingRequests(query) → {Array}

Returns a list of ListingRequest objects that match the provided (optional) query.

Parameters:
Name Type Description
query object

The optional query to filter results.

An array of ListingRequest object optionally matching the provided query.

Array

# async submitListingRequest(id) → {object}

Submit the ListingRequest object identified by its id.

Parameters:
Name Type Description
id string

The unique identifier of the ListingRequest object.

The ListingRequest object.

object