Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonymousClient ¶
type AnonymousClient struct { Client *noona.ClientWithResponses // contains filtered or unexported fields }
func (AnonymousClient) CodeTokenExchange ¶
func (n AnonymousClient) CodeTokenExchange(code string) (*noona.OAuthToken, error)
func (AnonymousClient) RefreshTokenExchange ¶
func (n AnonymousClient) RefreshTokenExchange(refreshToken string) (*noona.OAuthToken, error)
type Client ¶
type Client struct { Client *noona.ClientWithResponses // contains filtered or unexported fields }
func (Client) SetupSomeResource ¶
func (Client) SetupWebhook ¶
type Config ¶
type Config struct { BaseURL string `default:"https://api.noona.is"` AppStoreURL string `default:"https://hq.noona.app/week#settings-apps"` ClientID string `default:""` // TODO: Fill in with your client ID ClientSecret string `default:""` // TODO: Fill in with your client secret // Our app will rely on webhooks to implement the Blacklist. // We need to know where the webhook should be sent. AppBaseURL string `default:"http://localhost:8080"` // The Bearer token that all webhooks will be sent with AppWebhookToken string `default:"very-secure-token-secret"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) AnonymousClient ¶
func (s Service) AnonymousClient() (AnonymousClient, error)
Click to show internal directories.
Click to hide internal directories.