Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbarraford/forge
Autodesk API Client for golang.
https://github.com/cbarraford/forge
api autodesk autodesk-forge autodesk-viewer client forge go golang
Last synced: 2 days ago
JSON representation
Autodesk API Client for golang.
- Host: GitHub
- URL: https://github.com/cbarraford/forge
- Owner: cbarraford
- License: mit
- Created: 2019-02-02T06:43:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T12:17:51.000Z (over 5 years ago)
- Last Synced: 2024-06-20T15:37:34.583Z (5 months ago)
- Topics: api, autodesk, autodesk-forge, autodesk-viewer, client, forge, go, golang
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/cbarraford/forge.svg?branch=master)](https://travis-ci.org/cbarraford/forge)
[![codecov](https://codecov.io/gh/cbarraford/forge/branch/master/graph/badge.svg)](https://codecov.io/gh/cbarraford/forge)
[![GoDoc](https://godoc.org/github.com/cbarraford/forge?status.svg)](https://godoc.org/github.com/cbarraford/forge)# Forge
Autodesk API Client for golang.## Status
This project is consider "early phase", and therefore may not implement all
aspects of the Forge API, is subject to change, and may not have detail tests
written.## Setup
You'll need to [create an
app](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app/) in
order to use this client package. And then generate a `client id` and `client
secret`.Once you have these keys, put them in a `.env` at the root of this project.
```
export FORGE_CLIENT_ID=XXXXXXXX
export FORGE_CLIENT_SECRET=XXXXXXXXX
```Once, you've done that you can create a `Client` via...
```go
client, err := forge.New()
```Alternatively, you pass your creds in your code and receive a `Client`.
```go
client, err := forge.NewWithCreds("IDXXXX", "SECRETXXXX")
```## Development
#### Run tests
```sh
go test
```## TODO
* Setup a mock Autodesk API for testing instead of making real calls.