oauth

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.auth.oauth.*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckTokenResponse

type CheckTokenResponse struct {
	flickr.BasicResponse
	OAuth struct {
		// OAuth token
		Token string `xml:"token"`
		// String containing permissions bonded to this token
		Perms string `xml:"perms"`
		// The owner of this token
		User struct {
			// Flickr ID
			ID string `xml:"nsid,attr"`
			// Flickr Username
			Username string `xml:"username,attr"`
			// Flickr full name
			Fullname string `xml:"fullname,attr"`
		} `xml:"user"`
	} `xml:"oauth"`
}

Response type representing data returned by CheckToken

func CheckToken

func CheckToken(client *flickr.FlickrClient, oauthToken string) (*CheckTokenResponse, error)

Returns the credentials attached to an OAuth authentication token. This method does not require user authentication, but the request must be api-signed.

Jump to

Keyboard shortcuts

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