Documentation
¶
Overview ¶
package netatmo
Index ¶
Constants ¶
View Source
const ( // BaseURL is netatmo api url BaseURL = "https://api.netatmo.net/" // AuthURL is netatmo auth url AuthURL = BaseURL + "oauth2/token" // deviceURL is netatmo device url DeviceURL = BaseURL + "/api/getstationsdata" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizationCode ¶
type AuthorizationCode struct { ClientID string `json:"clint_id"` RedirectURI string `json:"redirect_uri"` Scope string `json:"scope"` State string `json:"state"` }
AuthorizationCode represents the data which is necessary for using the "Authorization code" grant type. This standard method. This method is for personal use only (the account with which the API application have been created). As alternative "Client credentials" grant type can be used.
type ClientCredentials ¶
type Config ¶
https://github.com/exzz/netatmo-api-go/blob/master/weather.go Config is used to specify credential to Netatmo API ClientID : Client ID from netatmo app registration at http://dev.netatmo.com/dev/listapps ClientSecret : Client app secret Username : Your netatmo account username Password : Your netatmo account password
type RefreshToken ¶
type RefreshToken struct { }
type Token ¶
type Token struct { AccessToken string ExpiresIn string RefreshToken RefreshToken }
Click to show internal directories.
Click to hide internal directories.