1
0
mirror of https://git.keinpfusch.net/loweel/zorg synced 2024-12-21 01:23:54 +01:00
zorg/createtoken/gettoken.go

24 lines
480 B
Go
Raw Permalink Normal View History

2023-07-15 00:25:03 +02:00
package main
import (
"context"
"fmt"
"log"
"github.com/mattn/go-mastodon"
)
func main() {
app, err := mastodon.RegisterApp(context.Background(), &mastodon.AppConfig{
Server: "https://boseburo.ddns.net",
ClientName: "zorg",
Scopes: "read write follow",
Website: "https://git.keinpfusch.net/loweel/zorg.git",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("client-id : %s\n", app.ClientID)
fmt.Printf("client-secret: %s\n", app.ClientSecret)
}