api

package
v0.0.0-...-59a5eb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL