Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Insee ¶
type Insee struct { AuthKey string AuthSecret string AuthToken InseeToken Authed bool AuthLastToken time.Time }
Insee basic object to manage the API https://api.gouv.fr/documentation/sirene_v3
func NewInseeRefreshed ¶
NewInseeRefreshed create a refreshed token Insee stuff
func (*Insee) RefreshAuthToken ¶
RefreshAuthToken automatically refresh the auth token based on expiry time
func (*Insee) SetAuthToken ¶
SetAuthToken will set Token from given Key and Secret
func (*Insee) SirenExist ¶
SirenExist return if the siren exist
Click to show internal directories.
Click to hide internal directories.