blob: cd620506d8858e9a75088e7955e18fab6fdbfa65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
---
title: "Set Rereading Status"
description: "Set Rereading to true or false"
weight: 8
---
Use the `SetIsRereading` method to set the rereading status.
This method takes these arguments:
- `id int` ID of the manga
- `isRereading bool` Self explanatory
Example:
``` go
package main
import (
"github.com/MikunoNaka/MAL2Go/v4/user/manga"
"log"
"fmt"
"strconv"
)
func main() {
authToken := "YOUR_TOKEN_HERE"
myClient := manga.Client {
AuthToken: "Bearer " + authToken,
}
res, err := myClient.SetIsRereading(82745, true)
if err != nil {
log.Fatal(err)
}
fmt.Println("Rereading status has been set to ", strconv.FormatBool(res.IsRereading))
}
```
The above example sets the rereading status of "Demi-chan wa Kataritai" to true.
The [response](/docs/mal2go/v4/user/manga/types/#mal2gousermangaupdateresponse) from the API can be used to show the information of the manga after being updated.
|