API Create User (with Company) in VB .net 4.5
Been searching around and cannot find the answer to either of my problems.
a) can i create a new user with a company in one go via API or does it need to be 2 separate posts? (a customer and then user?)
b) i am using VB .NET and although i can find many examples with PHP none with VB,
I am sure it is simple but everything i tried receives error 406:Not Acceptable at this point i am unsure if it is my XML string builder or my credentials but i was hoping that someone would have experience in VB.
Here is my code:
2 people have this question
FYI we managed to solve this problem.
The authorisation section must be converted to 64bit string, then the api works.
To add company to a user:
Company must be set up first
then ID returned.
Once company set and you know ID
In new user created include <customer-id>Returned ID</customer-id>
Could you post your working solution - I am struggling with a similar problem with Tickets and c#?
One of the programers i work with cracked it, they included;
Public credidentials As String = "API:X"
then a "Send freshdesk" function
Dim wHeader As WebHeaderCollection = New WebHeaderCollection()
Thanks Mark, I have it working now.
For anyone else, here is a C# example that gets all tickets. It sits behind a form with a textbox and a button on it.