Skip to content
On this page
netzo/apis/paddle

Paddle

Paddle is a SaaS platform for selling software and digital products online. It provides a suite of tools that businesses can use to grow, manage, and analyze their sales.

  • labels: billing, payments
  • authentication: bearer

Usage

ts
import { paddle } from 'https://deno.land/x/netzo/apis/paddle/mod.ts'

const { api } = paddle({
  apiKey: Deno.env.get('PADDLE_API_KEY'),
  baseUrl: 'https://api.paddle.com/'
})
import { paddle } from 'https://deno.land/x/netzo/apis/paddle/mod.ts'

const { api } = paddle({
  apiKey: Deno.env.get('PADDLE_API_KEY'),
  baseUrl: 'https://api.paddle.com/'
})

Configuration

The paddle factory function expects an object with the following, and returns an object with an HTTP client api.

ParamTypeDefaultDescription
apiKeystringDeno.env.get('PADDLE_API_KEY')the API key to use for authentication
baseUrlstringhttps://api.paddle.com/the base URL to use for requests

Refer to the API documentation to get the required information.

Examples

The following examples assume you have created an api client instance. Refer to the type definitions for all exported types to pass to the api client for typed responses.

References