From 1b2fa172948bb72ef8edca17012ff41105ed6add Mon Sep 17 00:00:00 2001 From: loweel Date: Sat, 15 Jul 2023 02:15:22 +0200 Subject: [PATCH] Updated Readme --- README.md | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 43c778f..5d4f525 100644 --- a/README.md +++ b/README.md @@ -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. 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", - "ZorgClientID": "aqwfgqubvqerb348hü13vhnrqvqerg1ü3ohrgvqervq", - "ZorgClientSecret": "qergerinqieorjhgqrijhg+3higqirgqirjgqerjgqq", + "ZorgServer": "https://example-pleroma.net", + "ZorgClientID": "default", + "ZorgClientSecret": "default", "ZorgUname": "johndoe", "ZorgPass" : "lalalalalalalala", "ZorgInterval": 7200