public async static Task <OpportunityWrapper> ListByPartyAsync(long partyId, int page = 1, int perPage = 20, Embed[] embed = null) { var endpoint = $"{BASE_ENDPOINT}/{partyId}/opportunities"; var opportunities = await CapsuleClient.baseGetRequest <OpportunityWrapper>(BASE_ENDPOINT, null, page, perPage, embed); return(opportunities); }
public async static Task <OpportunityWrapper> ListAsync(DateTime?since = null, int page = 1, int perPage = 20, Embed[] embed = null) { var opportunities = await CapsuleClient.baseGetRequest <OpportunityWrapper>(BASE_ENDPOINT, since, page, perPage, embed); return(opportunities); }