ballerinax/browshot Ballerina library

1.5.1

Overview

This is a generated connector for Browshot API v1.17.0 OpenAPI specification. Browshot API allows to get screenshots of any website in real time.

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

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

IT Operations/Browser Tools

Cost/Freemium


Contributors

Other versions

See more...