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

Add create/1, update/2, and create_comment/2 to Ticket #4

Merged
merged 5 commits into from
Aug 9, 2022

Conversation

Cameron-Kurth
Copy link
Contributor

No description provided.

Co-authored-by: Brian Muller <bmuller@parallelmarkets.com>
Copy link
Contributor

@lannon lannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the annoying comments. Just wanted to demonstrate that I was paying attention :)

lib/zendesk/client.ex Outdated Show resolved Hide resolved
@@ -5,15 +5,16 @@ defmodule Zendesk.Client.Operation do
alias Zendesk.Client.Parser
alias __MODULE__

defstruct path: "/", type: :get, parser: &Parser.default_parse/1, params: []
defstruct path: "/", type: :get, parser: &Parser.default_parse/1, params: [], body: nil
Copy link
Contributor

@lannon lannon Aug 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
I could engage in more HTTP bike-shedding and suggest that we could send a body with gets, but it'd be pointless and now I'm being super annoying. Apologies. Please don't randomly select me to host the next Happy Hour.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right! But I don't think there are any get endpoints in the API that accept a body, so think we should be good 😄

@bmuller bmuller merged commit 372692e into master Aug 9, 2022
@bmuller bmuller deleted the add-ticket-create-and-update branch August 9, 2022 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants