Code Monkey home page Code Monkey logo

pyamex's People

Contributors

nm523 avatar

Stargazers

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

Watchers

 avatar  avatar

pyamex's Issues

XML pareser error since few weeks. Did amex changed api?

Since few weeks my code using pyamex stop working at:

client = AmexClient(username='xxxxxxxx', password='xxxxxxx', locale='en_GB')
accounts = client.accounts()

Traceback (most recent call last):
File "", line 1, in
File "/home/xxxxxx/.local/lib/python3.7/site-packages/pyamex/client.py", line 66, in accounts
xml_tree = xml.etree.cElementTree.fromstring(response)
File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

Amex API Down?

Just curious if its me doing something wrong, an actual bug in the code, or if the Amex API is no longer available. I try to run your example file and get:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-13-4465971edafd> in <module>
----> 1 client.accounts()

/opt/conda/envs/Python3.6/lib/python3.6/site-packages/pyamex/client.py in accounts(self)
     75         accounts = [ 
     76                     self.create_account(account)
---> 77                     for account in xml_tree.find('CardAccounts')
     78                    ]
     79 

/opt/conda/envs/Python3.6/lib/python3.6/site-packages/pyamex/client.py in <listcomp>(.0)
     75         accounts = [ 
     76                     self.create_account(account)
---> 77                     for account in xml_tree.find('CardAccounts')
     78                    ]
     79 

/opt/conda/envs/Python3.6/lib/python3.6/site-packages/pyamex/client.py in create_account(self, account_tree)
     99         account_data['client'] = self
    100 
--> 101         for param in account_tree.find('CardData'):
    102             name = param.attrib['name']
    103             account_data[name] = param.text

TypeError: 'NoneType' object is not iterable

I dug through the code found the urls you had in the comments and tried them in Chrome and they appear dead. Is it still working for you?

Cannot pull more than the most recent billing period.

Working code example using the examples/amex_to_pandas.py script, and passing in a billing
period greater than 1.

This might just be an issue on Amex's side, but we'll have to see.

Error message:
`

<XMLResponse>
    <ServiceResponse>
        <Status>fail</Status>
        <Message>Our System is not responding. Please try after sometime or call Customer Service.</Message>
        <MessageCode>0005</MessageCode>
    </ServiceResponse>
</XMLResponse>`

ImportError

Unable to import anything from pyamex. I installed it using pip3 which returns Requirement already satisfied. I tried setup.py which writes successfully. My pycharm recognizes the package but it has only accounts, account and client within it. Even these return ImportError while trying to access.

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.