1
0
mirror of https://git.keinpfusch.net/loweel/zorg synced 2024-12-18 14:48:47 +01:00

Updated Readme

This commit is contained in:
loweel 2023-07-15 02:15:22 +02:00
parent 5644a4fb3c
commit 1b2fa17294

View File

@ -12,47 +12,18 @@ go build
``` ```
in order to use it, you need app credentials for your specific pod, which you obtain when you register your app.
In case your pod makes it too complicate, you can just use the following go :
```
package main
import (
"context"
"fmt"
"log"
"github.com/mattn/go-mastodon"
)
func main() {
app, err := mastodon.RegisterApp(context.Background(), &mastodon.AppConfig{
Server: "https://yourpodhere.put",
ClientName: "client-name",
Scopes: "read write follow",
Website: "whereyour application has a website",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("client-id : %s\n", app.ClientID)
fmt.Printf("client-secret: %s\n", app.ClientSecret)
}
```
just change the values to match your pod, and it will print a new ClientID and ClientSecret. just change the values to match your pod, and it will print a new ClientID and ClientSecret.
Once you have both, you can just feed the zorg configuration file, which is a JSON, and change his name as zorg.conf Once you have both, you can just feed the zorg configuration file, which is a JSON, and change his name as zorg.conf
Just leave "default" on your ClientID and secret.
``` ```
{ {
"ZorgServer":"https://example-pleroma.net", "ZorgServer": "https://example-pleroma.net",
"ZorgClientID": "aqwfgqubvqerb348hü13vhnrqvqerg1ü3ohrgvqervq", "ZorgClientID": "default",
"ZorgClientSecret": "qergerinqieorjhgqrijhg+3higqirgqirjgqerjgqq", "ZorgClientSecret": "default",
"ZorgUname": "johndoe", "ZorgUname": "johndoe",
"ZorgPass" : "lalalalalalalala", "ZorgPass" : "lalalalalalalala",
"ZorgInterval": 7200 "ZorgInterval": 7200