mjmortimer / elixero Goto Github PK
View Code? Open in Web Editor NEWXero API client library for elixir
License: MIT License
Xero API client library for elixir
License: MIT License
Seems like OAuth 1.1 is no longer supported. Will this library be updated?
Xero API libraries in other languages (specifically Ruby) allow you to pass in the Xero credentials and file location when you initialize the Xero object for use. This is very useful when you have to interact with multiple Xero organizations from a single application.
Can we change this library to take in a map which has the credentials and file location when the client struct is created and then exclusively use those rather than use values from a config file?
So calling the create function would look something like this:
EliXero.create_client(%{ private_key_path: "priv/dev_xero_za-tmp.pem", consumer_key: "LKLKJLJLKJ", consumer_secret: "98BKBJKBK", app_type: :private })
I am happy to do this change and submit a pull request.
Setting the callback_url to any valid url eg: http://localhost
will give out Failed to validate signature
. But setting it to localhost
or empty string works.
%{"http_status_code" => 401, "oauth_problem" => "signature_invalid", "oauth_problem_advice" => "Failed to validate signature"}
Example of failed request as generated from EliXero.Utils.Oauth.create_auth_header
call.
"OAuth oauth_signature=\"BYZbLxRCXG7VC%2BUcV8BLgKYzJE4%3D\", oauth_callback=\"http://localhost\", oauth_consumer_key=\"IWF2TM6LCD0EHEKCOX6O6SI9KMO2GL\", oauth_nonce=\"kZ2dCE8r1S\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_timestamp=\"1498365910\""
Need to inspect the request and find what's preventing the name from being used
Might be a tricky one
Dumb question: how do you access the fields after you do something like:
result = EliXero.CoreApi.Invoices.find client
If I want to look at the subtotal for a particular invoice, how do I do that? I'm new to Elixir and can't figure this out :(
I've tried
result.Invoices
result.__struct__.Invoices
result[:Invoices]
None of them work :(
Currently the core accounting API is fully supported, with a start on files.
Finish files, add others like payroll, and assets
I.E - ; [ ]
e.g Where type is ACCREC and status is DRAFT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.