fix: api-key leak again...
Signed-off-by: SoXX <soxx@fenpa.ws>
This commit is contained in:
parent
f26e5b223a
commit
f69c1b14a3
@ -13,8 +13,8 @@ func main() {
|
||||
Client: http.Client{},
|
||||
Host: "https://e621.net",
|
||||
UserAgent: "Go-e621-SDK (@username)",
|
||||
Username: "selloo", // Replace with your username
|
||||
APIKey: "zt7XAaewLqP4AWvQi5WrLNwN", // Replace with your API key
|
||||
Username: "", // Replace with your username
|
||||
APIKey: "", // Replace with your API key
|
||||
}
|
||||
|
||||
// Log: Getting a single tag.
|
||||
|
@ -1,12 +1,25 @@
|
||||
package model
|
||||
|
||||
type TagCategory int
|
||||
|
||||
const (
|
||||
General TagCategory = iota
|
||||
Artist
|
||||
Copyright TagCategory = iota + 1
|
||||
Character
|
||||
Species
|
||||
Invalide
|
||||
Meta
|
||||
Lore
|
||||
)
|
||||
|
||||
type Tag struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PostCount int64 `json:"post_count"`
|
||||
RelatedTags string `json:"related_tags"`
|
||||
RelatedTagsUpdatedAt string `json:"related_tags_updated_at"`
|
||||
Category int64 `json:"category"`
|
||||
Category TagCategory `json:"category"`
|
||||
IsLocked bool `json:"is_locked"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
|
Reference in New Issue
Block a user