Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

RSA-SHA1 API request

Started by Pei (Kevin) Ma -   in API Authentication

Hi all,
I have problem with RsaSha1 API request via Partner app OAuth 1.0a, can you help me with this? thanks.

I want to fetch invoices by calling invoices API, using the code below. I got nothing with RsaSha1 sig on partner app, the same code worked with HMAC-SHA1 sig on public app.

Is there some mistake, can you pls figure out?

BTW, Does Xero OAuth 2.0 still need RsaSha1 sig? thanks a lot.

var client = new RestSharp.RestClient("https://api.xero.com");

client.Authenticator = RestSharp.Authenticators.OAuth1Authenticator.ForAccessToken("**consumerKey**",

var request = new RestSharp.RestRequest("/api.xro/2.0/Invoices", RestSharp.Method.GET);

request.AddHeader("accept", "application/json");
request.AddHeader("If-Modified-Since", dateFrom);
request.AddQueryParameter("Statuses", "PAID");
request.AddQueryParameter("page", "1");
response = client.Execute(request);