-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement "Send to log.C2" #6
Comments
OAuth2 library seems to be fine for the use-case.. |
Cool! TIL about the Concept2 logbook.
FWIW - StrokeData endpoint appears to be GET or DELETE, i.e. **not** a POST to write/upload strokes. Add Result endpoint has a POST for data. Can optionally contain an array of “stroke_data”. I see in GET strokes doc “results", data fields are t, d, p, spm, hr.
{
"data": [
{
"t": 0,
"d": 0,
"p": 0,
"spm": 0,
"hr": 0
}
]
}
… On Mar 11, 2021, at 9:37 AM, Jeanneret Cedric ***@***.***> wrote:
Preparation:
Find a REST/JSON API client lib
Find an OAuth client lib
Get a log.c2 dev account and related keys
Implement proper OAuth request for authentication
Decision:
Must decide if the app will push the strokes as StrokeData <https://log.concept2.com/developers/documentation/#logbook-users-stroke-data> or simple Result <https://log.concept2.com/developers/documentation/#logbook-users-results-post>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#6>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKQDWFAZ5EFAPFGERIPGULTDDWWHANCNFSM4ZATSQ2Q>.
|
REST client seems to just be a thing using ``net/http```- then I'll provide a pkg, like "c2logbook". Apparently nothing exists in Go. |
FWIW - I recall a blog I read about Go and network libs/frameworks. The gist was “Go doesn’t need no stinkin’ lib/frameworks for network/web server stuff. Just use net/http.”
… On Mar 11, 2021, at 9:52 AM, Jeanneret Cedric ***@***.***> wrote:
REST client seems to just be a thing using ``net/http```- then I'll provide a pkg, like "c2logbook". Apparently nothing exists in Go.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKQDWAURT4UL2HWLMAFEQ3TDDYLDANCNFSM4ZATSQ2Q>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preparation:
Decision:
Must decide if the app will push the strokes as Full Result or simple Bulk
(edit: updated/corrected links in Decision)
The text was updated successfully, but these errors were encountered: