content

package
v0.0.0-...-d4762d9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRawContent

func GetRawContent(content_id string) (*http.Response, error)

func PostContent_SignatureStr

func PostContent_SignatureStr(tag, title, account_id, sub_account_id, sub_account_name, abstract, language, category string,
	created int, content string, license *dtcpv1.License) (string, *dtcpv1.ContentPost, error)

Types

type GetContentResponse

type GetContentResponse struct {
	core.Response
	Data *dtcpv1.ContentGet `json:"data"`
}

func GetContentMetadata

func GetContentMetadata(content_id string) (*GetContentResponse, error)

type PostContentResponse

type PostContentResponse struct {
	core.Response
	Data *PostContentResult `json:"data"`
}

func PostContent_Aritcle

func PostContent_Aritcle(signature string, preObj *dtcpv1.ContentPost) (*PostContentResponse, error)

func PostContent_ImageMultipartForm

func PostContent_ImageMultipartForm(signature string, preObj *dtcpv1.ContentPost, imgPath string) (*PostContentResponse, error)

func PostContent_ImageUrlencoded

func PostContent_ImageUrlencoded(signature string, preObj *dtcpv1.ContentPost) (*PostContentResponse, error)

type PostContentResult

type PostContentResult struct {
	Id  string `json:"id"`  // The id of the content.
	Dna string `json:"dna"` // The DNA of the content.
}

Jump to

Keyboard shortcuts

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