test

package
v0.0.0-...-0e47a65 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package implementing methods: flickr.test.*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Null

func Null(client *flickr.FlickrClient) (*flickr.BasicResponse, error)

Noop method This method requires authentication with 'read' permission.

Types

type EchoResponse

type EchoResponse struct {
	flickr.BasicResponse
	// API method name, dotted notation
	Method string `xml:"method"`
	// API Key provided
	ApiKey string `xml:"api_key"`
	// API data exchange format (ex. rest)
	Format string `xml:"format"`
}

Response type used by Echo function

func Echo

func Echo(client *flickr.FlickrClient) (*EchoResponse, error)

A testing method which echo's all parameters back in the response. This method does not require authentication.

type LoginResponse

type LoginResponse struct {
	flickr.BasicResponse
	// the user who provided authentication infos
	User struct {
		// Flickr ID
		ID string `xml:"id,attr"`
		// Flickr Username
		Username string `xml:"username"`
	} `xml:"user"`
}

Response type used by Login function

func Login

func Login(client *flickr.FlickrClient) (*LoginResponse, error)

A testing method which checks if the caller is logged in then returns their username. This method requires authentication with 'read' permission.

Jump to

Keyboard shortcuts

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