contacts.getSponsoredPeers
Obtain a list of sponsored peer search results for a given query
func (c *Client) ContactsGetSponsoredPeers(ctx context.Context, q string) (ContactsSponsoredPeersClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ContactsGetSponsoredPeers(ctx, q)
if err != nil {
return err
}
_ = res // ContactsSponsoredPeersClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Q | string | yes | The query |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SEARCH_QUERY_EMPTY | The search query is empty. |
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.getSponsoredPeers#b6c8c393