Golang SDK wrapper for ProctorExam v3 API
You must set the following environment variables in order to be able to connect with the ProctorExam API:
PE_API_KEY=YOUR_API_KEY
PE_API_SECRET=YOUR_API_SECRET
You must also install the library in your GOPATH env:
go get -u github.com/serveba/proctor-exam
After having env vars configured and library installed, you can call directly the methods from your code. This is an example of how to do it:
import (
...
proctorexam "github.com/serveba/proctor-exam"
...
)
...
url, _ := url.Parse("https://yoursubdomain.proctorexam.com")
api, _ := proctorexam.New(proctorexam.BaseURL(url))
exams, _ := api.Exams()
...
- Docs index: http://docs.proctorexam.com/
- API docs (v3): http://docs.proctorexam.com/v3/apidoc.html