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: about 2 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T12:17:51.000Z (over 7 years ago)
- Last Synced: 2025-06-13T08:06:27.346Z (about 1 year ago)
- Topics: api, autodesk, autodesk-forge, autodesk-viewer, client, forge, go, golang
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/cbarraford/forge)
[](https://codecov.io/gh/cbarraford/forge)
[](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.