Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in var name in example project #269

Merged
merged 1 commit into from
Mar 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ZendeskApi_v2.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ static void Main(string[] args)
static async Task MainAsync(string email)
{

string userEmailToSreachFor = "eneif123@yahoo.com";
string userEmailToSearchFor = "eneif123@yahoo.com";

string userName = "eric.neifert@gmail.com"; // the user that will be logging in the API aka the call center staff
string userPassword = "pa55word";
string companySubDomain = "csharpapi"; // sub-domain for the account with Zendesk
int pageSize = 5;
var api = new ZendeskApi(companySubDomain, userName, userPassword);

var userResponse = api.Search.SearchFor<User>(userEmailToSreachFor);
var userResponse = api.Search.SearchFor<User>(userEmailToSearchFor);

long userId = userResponse.Results[0].Id.Value;
List<Ticket> tickets = new List<Ticket>();
Expand Down