Documentation
¶
Overview ¶
Package api is the structure of the JSON returned by the pCloud API. The structs in this package can be used when calling pcloud.ApiRequest() as respStruct parameter. Therefore a empty variable of the struct needs to be created. A pointer to that variable needs to be passed to the ApiRequest() that the JSON response is decoded into the variable. The documentation to all the methods of the pCloud API can be found here: https://docs.pcloud.com/methods.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Path string `json:"path"` Name string `json:"name"` Created string `json:"created"` Modified string `json:"modified"` IsFolder bool `json:"isfolder"` FileID int64 `json:"fileid"` Hash int64 `json:"hash"` ID string `json:"id"` Size int64 `json:"size"` ParentFolderID int64 `json:"parentfolderid"` ContentType string `json:"contenttype"` Contents []Metadata `json:"contents"` }
Metadata is returned when listfolder method is used. Documentation of the API: https://docs.pcloud.com/methods/folder/listfolder.html
Click to show internal directories.
Click to hide internal directories.