🏄♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/OpenAdaptAI/OpenAdapt/HEAD/install/install_openadapt.sh)" | |
+ pythonCmd=python3.10 | |
+ pythonVerStr='Python 3.10*' | |
+ pythonInstallerLoc=https://www.python.org/ftp/python/3.10.11/python-3.10.11-macos11.pkg | |
+ BRANCH=main | |
+ REPO=OpenAdaptAI/OpenAdapt.git | |
+ REPO_URL=https://github.com/OpenAdaptAI/OpenAdapt.git | |
+ CheckCMDExists brew | |
+ command=brew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XeroConfiguration xconfig = new XeroConfiguration(); | |
xconfig.ClientId = "yourClientId"; | |
xconfig.ClientSecret = "yourClientSecret"; | |
xconfig.CallbackUri = new Uri("https://localhost:5001") //default for standard webapi template | |
xconfig.Scope = "openid profile email files accounting.transactions accounting.contacts offline_access"; | |
var client = new XeroClient(xconfig); | |
//before getting the access token please check that the state matches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"XeroAPI/xero-ruby": { | |
"commits": 149, | |
"open_issues_count": 15, | |
"closed_issues_count": 86, | |
"open_pulls_count": 2, | |
"closed_pulls_count": 34, | |
"pull_requests_comments": 2, | |
"collaborators_count": 42, | |
"release_count": 21, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Id": "7cd21606-cf25-4dcf-93da-3cfdf4d7200d", | |
"Status": "OK", | |
"ProviderName": "Testing21-05-2020", | |
"DateTimeUTC": "\/Date(1603989615288)\/", | |
"CreditNotes": [ | |
{ | |
"CreditNoteID": "a459f738-4e7a-49d7-b234-7b7caac6b96c", | |
"CreditNoteNumber": "", | |
"Payments": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Type": "ACCPAYCREDIT", | |
"Contact": { | |
"ContactID": "eaa28f49-6028-4b6e-bb12-d8f6278073fc" | |
}, | |
"Date": "2009-03-29", | |
"LineAmountTypes": "Exclusive", | |
"LineItems": [ | |
{ | |
"Description": "MacBook - White", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET https://api.xero.com/api.xro/2.0/TrackingCategories | |
{ | |
"Id": "52320140-3aaa-4106-b9fc-087c9feec702", | |
"Status": "OK", | |
"ProviderName": "Insomnia Client", | |
"DateTimeUTC": "\/Date(1603904047088)\/", | |
"TrackingCategories": [ | |
{ | |
"Name": "Regions", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Contacts": [{ | |
"ContactNumber": "ID001", | |
"Name": "ABC Limited", | |
"FirstName": "John", | |
"LastName": "Smith", | |
"EmailAddress": "[email protected]", | |
"Addresses": [ | |
{ | |
"AddressType": "STREET", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var contact = new Contact(); | |
contact.Name = Name; | |
var line = new LineItem() { | |
Description = LineDescription, | |
Quantity = float.Parse(LineQuantity), | |
UnitAmount = float.Parse(LineUnitAmount), | |
AccountCode = LineAccountCode | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST https://api.xero.com/api.xro/2.0/Payments?summarizeErrors=false | |
{ | |
"Payments": [ | |
{ | |
"Invoice": { "InvoiceID": "e081f93b-bdde-417b-b785-2b453c9b3ed3" }, | |
"Account": { "AccountID": "3d09fd49-434d-4c18-a57b-831663ab70d2" }, | |
"Date": "2020-08-05", | |
"Amount": 234303.00 | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'uri' | |
require 'json' | |
require 'net/http' | |
uri = URI.parse(ENDPOINT) | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
headers = {'Content-Type' =>'application/json', 'Authorization': authorization_header} | |
request = Net::HTTP::Post.new(uri.request_uri, headers) |
NewerOlder