Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/stevenlimhw/canvas-go-sdk

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/stevenlimhw/canvas-go-sdk

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

canvasgo

How to install the SDK

  1. In the relevant Go file, import github.com/stevenlimhw/canvasgo.
  • Ensure that you have go.mod file in your Go project directory. Otherwise, run the command go mod init <your-package-name> to create one.
  1. Run go mod tidy to fetch the dependencies. Notice that the SDK has been added as a dependency in the go.mod file.

How to configure the Canvas access token

  1. Obtain the access token from Canvas Dashboard (by going to Settings).
  2. Set the access token as an environment variable, by running export CANVAS_ACCESS_TOKEN=<your-access-token>.
  • This applies for MacOS and Linux, there may be a different way of doing things on Windows.
  1. To check that the token has been correctly set, run echo $CANVAS_ACCESS_TOKEN in the terminal and you should be able to see the token.

FAQs

Package last updated on 01 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc