forked from Speedygeek/ZendeskApi_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added option for download attchment (Speedygeek#313)
* added option for download attchment * fixing the build * speedy up build * speedy up part 2 * fixing build
- Loading branch information
Showing
24 changed files
with
225 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,18 @@ static void Main(string[] args) | |
static async Task MainAsync(string email) | ||
{ | ||
|
||
string userEmailToSearchFor = "[email protected]"; | ||
var userEmailToSearchFor = "[email protected]"; | ||
|
||
string userName = "[email protected]"; // the user that will be logging in the API aka the call center staff | ||
string userPassword = "&H3n!0q^3OjDLdm"; | ||
string companySubDomain = "csharpapi"; // sub-domain for the account with Zendesk | ||
int pageSize = 5; | ||
var userName = "[email protected]"; // the user that will be logging in the API aka the call center staff | ||
var userPassword = "&H3n!0q^3OjDLdm"; | ||
var companySubDomain = "csharpapi"; // sub-domain for the account with Zendesk | ||
var pageSize = 5; | ||
var api = new ZendeskApi(companySubDomain, userName, userPassword); | ||
|
||
var userResponse = api.Search.SearchFor<User>(userEmailToSearchFor); | ||
|
||
long userId = userResponse.Results[0].Id.Value; | ||
List<Ticket> tickets = new List<Ticket>(); | ||
var userId = userResponse.Results[0].Id.Value; | ||
var tickets = new List<Ticket>(); | ||
|
||
var ticketResponse = await api.Tickets.GetTicketsByUserIDAsync(userId, pageSize, sideLoadOptions: Requests.TicketSideLoadOptionsEnum.Users); // default per page is 100 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.