Updated Readme
parent
5644a4fb3c
commit
1b2fa17294
37
README.md
37
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.
|
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
|
||||||
|
|
Loading…
Reference in New Issue