This repository was archived by the owner on Jul 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- package api
1+ package cloud
22
33import (
44 "bytes"
@@ -13,7 +13,7 @@ import (
1313const defaultUserAgent = "rmapi"
1414const defaultBaseURL = "https://document-storage-production-dot-remarkable-production.appspot.com"
1515
16- // A Client manages communication with the Remarkable API.
16+ // A Client manages communication with the Remarkable Cloud API.
1717type Client struct {
1818 // By making the base URL configurable we can make it
1919 // testable by passing the URL of a httptest.Server.
@@ -22,7 +22,7 @@ type Client struct {
2222
2323 UserAgent string
2424
25- // The api package does not directly handle authentication.
25+ // The cloud package does not directly handle authentication.
2626 // Instead, when creating a new client, pass an http.Client that
2727 // can handle authentication for you.
2828 // The easiest and recommended way to do this is using the auth package.
Original file line number Diff line number Diff line change 11// +build withauth
22
3- package api
3+ package cloud
44
55import (
66 "io/ioutil"
Original file line number Diff line number Diff line change 1- // Package api is the second version of the client implemented
1+ // Package cloud is the second version of the client implemented
22// for interacting with the Remarkable Cloud API. It has been initiated because
33// the first version was not decoupled enough and could not be easily used
44// by external packages. The first version of the package is still available for
1818//
1919// We tend to follow the good practices from this article to write a modular http client:
2020// https://medium.com/@marcus.olsson/writing-a-go-client-for-your-restful-api-c193a2f4998c.
21- package api
21+ package cloud
Original file line number Diff line number Diff line change 1- package api
1+ package cloud
22
33import (
44 "net/http"
Original file line number Diff line number Diff line change 1- package api
1+ package cloud
22
33import (
44 "bytes"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments