Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clever API v2.0+ support #49

Open
anatolym opened this issue Sep 6, 2019 · 0 comments
Open

Clever API v2.0+ support #49

anatolym opened this issue Sep 6, 2019 · 0 comments

Comments

@anatolym
Copy link

anatolym commented Sep 6, 2019

Hey guys,
are there plans to support Clever API 2.0 and above? It looks like current implementation is not completely compatible with the lates API docs http://clever.com/schema (at least in terms of struct definitions).

For example, in repo (https://github.com/Clever/clever-go/blob/master/clever.go#L309)

// Contact corresponds to the Contact resource in the Clever data schema: clever.com/schema
type Contact struct {
	ID           string
	Student      string
	Type         string
	Name         string
	Relationship string
	Phone        string
	PhoneType    string `json:"phone_type"`
	Email        string
	District     string
}

but in API docs (https://clever.com/schema)

Field Name Format Example Data Description
id ObjectID 4fee004dca2e43cf270009d9 Globally unique and stable id for student contact.
district ObjectID 4fd43cc56d11340000000005 Globally unique and stable id for contact's district.
name String Katie Bueller Name of contact.
type String primary Type of contact. Possible values: ["Primary","Secondary", "Parent/Guardian", "Emergency", "Family", "Other"].
students List of ObjectIDs ["4fe3ff50dfa547000000033a", "4fe3ff50dfa5470000000359", "4fe3ff50dfa5470000000234"] Globally unique and stable ids for students associated with contact.
sis_id String 123456 Internal contact identifier from source system.
email String kbueller@gmail.com Contact email address.
phone String 727.565.1000 Contact phone number.
phone_type String mobile Type of phone number. Possible values: ["Home", "Cell", "Work", "Other"].
relationship String mother Relationship to student. Possible values: ["Parent","Grandparent","Self", "Aunt/Uncle", "Sibling," Other"].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant