Code Monkey home page Code Monkey logo

elixero's People

Contributors

aspett avatar ericsullivan avatar jeznag avatar mjmortimer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elixero's Issues

Usage instructions

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 :(

Include other APIs

Currently the core accounting API is fully supported, with a start on files.

Finish files, add others like payroll, and assets

Failed to validate signature when absolute callback url is used.

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\""

Pass in Xero configuration when creating the Client struct

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.