github.com/joshuabezaleel/go-osf/osf (go): Package osf provides a client for using the Open Science Framework (OSF, https://osf.io) API. Since this client uses generics in its implementation, Go v1.18+ is required.  This project follows the similar structure of github.com/google/go-github.  Usage:  The OSF API token can be obtained from https://osf.io/settings/tokens.  OSF API conforms the JSON API spec v1.0 (https://jsonapi.org/format/1.0/). The response payload will be in this generic form:  Nearly all methods will be in this form:  For most of the times, you won't need the res object, as the first returned param should already incorporate Attributes, Links, and Relationships. An exception would be for pagination, which will be explained below.  For methods returning multiple objects, the `res` will be of type ManyPayload[T,U]. and PaginationMeta field will contain the pagination info.  You may check the error returned for type *Errors, which contains more verbose information about the error.
Keywords: golang|osf