blob: 4f95e2f64c468b7da6a12da59f9cabde7351f1d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package api
type RegisterMessage struct {
//agent
//contract
//faction
//ship
Token string `json:"token"`
}
func (c *Client) Register(faction, symbol string) (APIMessage[RegisterMessage, any], error) {
type RegisterRequest struct {
Faction string `json:"faction"`
Symbol string `json:"symbol"`
}
return Send[RegisterMessage](c, "POST", "/register", RegisterRequest{
Faction: faction,
Symbol: symbol,
})
}
|