appview/xrpcclient: add ServerGetServiceAuth API #345

merged
opened by oppi.li targeting master from push-nozqtwvsrvkx
Changed files
+15
appview
xrpcclient
+15
appview/xrpcclient/xrpc.go
···
return &out, nil
}
+
+
func (c *Client) ServerGetServiceAuth(ctx context.Context, aud string, exp int64, lxm string) (*atproto.ServerGetServiceAuth_Output, error) {
+
var out atproto.ServerGetServiceAuth_Output
+
+
params := map[string]interface{}{
+
"aud": aud,
+
"exp": exp,
+
"lxm": lxm,
+
}
+
if err := c.Do(ctx, c.authArgs, xrpc.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
+
return nil, err
+
}
+
+
return &out, nil
+
}