thumbnail

package
v0.0.0-...-795d1ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScreenshotRequest

type ScreenshotRequest struct {
	// height of the browser window, optional
	Height int32  `json:"height"`
	Url    string `json:"url"`
	// width of the browser window. optional
	Width int32 `json:"width"`
}

type ScreenshotResponse

type ScreenshotResponse struct {
	ImageUrl string `json:"imageUrl"`
}

type ThumbnailService

type ThumbnailService struct {
	// contains filtered or unexported fields
}

func NewThumbnailService

func NewThumbnailService(token string) *ThumbnailService

func (*ThumbnailService) Screenshot

func (t *ThumbnailService) Screenshot(request *ScreenshotRequest) (*ScreenshotResponse, error)

Create a thumbnail screenshot by passing in a url, height and width

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL