ballerinax/browshot Ballerina library

1.5.2

Overview

The Browshot API v1.17.0 connector(https://browshot.com/api/documentation) OpenAPI specification. Browshot API allows to get screenshots of any website in real time.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Access analytics, reports, and performance metrics
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

Prerequisites

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

Quickstart

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

Step 1: Import connector

First, import the ballerinax/browshot module into the Ballerina project.

Copy
import ballerinax/browshot;

Step 2: Create a new connector instance

You can initialize the client as follows. You can now provide the API key obtained from the Browshot dashboard in the configuration.

Copy
browshot:ApiKeysConfig apiKeyConfig = {
    key: "<API_KEY>"
}

browshot:Client baseClient = check new Client(apiKeyConfig, serviceUrl = "https://api.browshot.com/api/v1");

Step 3: Invoke connector operation

  1. You can get all browsers.
    Copy
    browshot:BrowserList browserList = check baseClient->getBrowsersInfo();
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/browshot;Copy

Other versions

See more...

Metadata

Released date: 3 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 26

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/Browshot

Area/Developer Tools

IT Operations/Browser Tools

Cost/Freemium


Contributors