Skip to content

Instantly share code, notes, and snippets.

View ronanq's full-sized avatar

Ronan Quirke ronanq

  • Xero
  • Wellington
View GitHub Profile
<%@page import="net.oauth.http.HttpClient"%><%@ page language="java" import="client.PartnerHttpClientPool,java.io.*, java.net.*,java.util.*,java.security.*,net.oauth.OAuth, net.oauth.OAuthAccessor, net.oauth.OAuthConsumer, net.oauth.OAuthMessage, net.oauth.OAuthServiceProvider, net.oauth.signature.RSA_SHA1, net.oauth.client.OAuthClient,java.util.*,java.math.BigInteger,javax.xml.parsers.DocumentBuilder,javax.xml.parsers.DocumentBuilderFactory,javax.xml.xpath.XPath,javax.xml.xpath.XPathConstants,javax.xml.xpath.XPathExpression,javax.xml.xpath.XPathFactory,org.w3c.dom.Document,org.w3c.dom.NodeList,org.xml.sax.InputSource,net.oauth.client.httpclient4.HttpClient4" %>
<%
OAuthServiceProvider xeroPartnerProvider =
new OAuthServiceProvider(
"https://api-partner.network.xero.com/oauth/RequestToken",
"https://api.xero.com/oauth/Authorize",
"https://api-partner.network.xero.com/oauth/AccessToken");