Skip to content
New issue

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

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

Already on GitHub? # to your account

Replace 'Request access' with actual POST to Zendesk #58

Open
2 tasks
brechtvdv opened this issue Jul 20, 2016 · 1 comment
Open
2 tasks

Replace 'Request access' with actual POST to Zendesk #58

brechtvdv opened this issue Jul 20, 2016 · 1 comment

Comments

@brechtvdv
Copy link

brechtvdv commented Jul 20, 2016

Requesting a service happens now by redirecting to https://viaa.zendesk.com/hc/nl/requests/new.

We want to replace this by sending a JSON object to the zendesk API automatically, because we already have all the info that needs to be send: their email adress, (name), organization and the service they want to have access to.

Two things need to be changed:

  • Send a POST request to the Zendesk API.
    You can do this in the command line like this (but you need to do this in the front-end with an ajax call:
curl https://viaa.zendesk.com/api/v2/tickets.json -d '{"ticket": {"subject": "Toegang tot dienst {naam-dienst}", "comment": { "body": "Email-adres: {email-adress}\n Naam: {naam-persoon}\n Organisatie: {organisatie}\n"}, "tags": ["toegang-dienst"] }}' -H "Content-Type: application/json" -v -u {username}:{password} -X POST

I will send you the credentials of the 'support' account.

  • Change the layout so 'Request access' changes to 'Access requested'
@Laurensdc
Copy link

Send via backend

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants