1.0.5 • Published 1 year ago

@wowandy/photo_room_client_api_js v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

PhotoRoomClientAPIJS

PhotoRoomClientAPIJS - JavaScript client for PhotoRoom API. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.5
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit https://photoroom.com/api

Installation

For Node.js

npm

npm i @wowandy/photo_room_client_api_js

Getting Started

Please follow the installation instruction, then get your API key and execute the following JS code:

import * as PhotoRoom from "@wowandy/photo_room_client_api_js"

const defaultClient = PhotoRoom.ApiClient.instance;
// Configure API key authorization: x-api-key
const xApiKey = defaultClient.authentications['x-api-key'];
xApiKey.apiKey = 'YOUR API KEY'

const api = new PhotoRoom.DefaultApi()

api.accountDetails((error, data, response) => {
    console.log('accountDetails', data)
    if (error) {
        console.error(error)
        throw error;
    }
});

Documentation for API Endpoints

All URIs are relative to https://beta-sdk.photoroom.com

ClassMethodHTTP requestDescription
PhotoRoomApi.DefaultApiaccountDetailsGET /v1/accountAccount Details
PhotoRoomApi.DefaultApieditImageGetGET /v1/renderBETA Edit Image v1
PhotoRoomApi.DefaultApieditImagePostPOST /v1/renderBETA Edit Image v1
PhotoRoomApi.DefaultApiinstantBackgroundGetGET /v1/instant-backgroundsBETA Generate Background
PhotoRoomApi.DefaultApiinstantBackgroundPostPOST /v1/instant-backgroundsBETA Generate Background
PhotoRoomApi.DefaultApiremoveBackgroundPOST /v1/segmentRemove Background
PhotoRoomApi.DefaultApiv2EditGetGET /v2/editBETA Edit Image v2
PhotoRoomApi.DefaultApiv2EditPostPOST /v2/editBETA Edit Image v2

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

x-api-key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago