Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Getting Started >

beginner in Xero

Started by july moon -   in Getting Started

Hi,
I am a beginner in Xero, we just planned to integrate with Xero.
currently we are using VB.Net, I've checked in code sample I found that Xero-Net .
Is it XeroAPI.Net No longer officially supported or maintained by Xero ?
If I want to integrate with VB.Net how should I start ?

hi July,

Yes, you can def integrate with Xero using vb.net
 

Duncan Grant  

Thanks for your reply, I want to know is how can I integrate.
Let's say in the API previewer there have a steps
1. Initializing OAuthHttpWebRequest
2. Method = GET
3. Creating url
4. Setting url: https://api.xero.com/api.xro/2.0/organisation
5. Getting response
6. Response body: <Response xmlns:xsd="http://www.w3.org/2001/XMLSch

I want to know that how to initialize OAuthHttpWebRequest
 

july moon  

There are some samples that you can get the idea.
such as : https://github.com/XeroAPI/XeroAPI.Net
 

Duncan Grant  

This code is provided by the developer community - Xero does not warrant it in any way
Have a look here I have posted some code.

Kind Regards
Henzard Kruger
Certified Advisor and API developer
Picahoo cc - 0711304241 - henzard@picahoo.co.za
Skype: henzard, Gtalk: henzardkruger@gmail.com
Quality is remembered long after the price is forgotten
 

Henzard Kruger  

thanks, is there any example how to use with webrequest to pass the URL and get the response ? According to documentation there have Request and Response .
HTTP Requests and Responses .I cannot find any example pass the URL by webrequest and get response by xml.
 

july moon  

Hi July,

Like you, I have been looking for working sample code to send an XML (GET, POST,PUT) to Xero using HTTPS.

I have asked the Xero Developers for help but I have been told to do it myself, see this discussion:-
https://community.xero.com/developer/discussion/8912773




 

Edward Re  

Hi Edward, have you finally found the solution for your question?
 

Sunny Le  

i gave up the idea of using native GET, POST and PUT and instead I am using the C# Wrapper, it's pretty good!
 

Edward Re  

I'm using the C# wrapper as well and found it very confusing to use. The data returned is an object but what i want is either json/xml response. Did you manage to get response in json/xml?
 

Sunny Le  

nope! I get the response via Wrapper (Class Objects) and that gives me the ability to also check return codes, and for collections .. I can easily write loops to iterate through lists and handle array objects.

I need to say the Wrapper is a phenomenal and brilliant work of software engineering and Xero could not have done a better job.

However I am hoping the C# Wrapper will not change too much or become unsupported in the future as it will be very painful to re-engineer the code using it in my Private Applications!

cheers
 

Edward Re  

Hey Guys,

There is a toXml function on most of the objects that should work in VB too.
Kind Regards

Remember we consult on a per hour basis. Contact us if your need us to fix the problem. $35 per hour.

We can do a 30 min free consultation via Skype.

Henzard Kruger
Certified Xero Advisor and Full Stack developer
Picahoo cc - 0711304241 - henzard@picahoo.co.za
Skype: henzard, Gtalk: henzardkruger@gmail.com
Quality is remembered long after the price is forgotten

I abide by the 3 message rule. After 3 messages we skype.
 

Henzard Kruger