Giter Site home page Giter Site logo

hello-obp-directlogin-python's People

Contributors

chrisjsimpson avatar finlouarn avatar hongwei1 avatar karmaking avatar rstormsf avatar sebtesobe avatar simonredfern avatar superphil0 avatar tawoe avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hello-obp-directlogin-python's Issues

ConnectionError: ('Connection aborted.', error(111, 'Connect ion refused'))

python2 hello_obp.py
Login as {'dl_username': '[email protected]', 'dl_password': '3e3a3102'} to http://127.0.0.1:8080/my/logins/direct
Traceback (most recent call last):
File "hello_obp.py", line 31, in
response = requests.post(URL_LOGIN, json=loginData)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 99, in post
return request('post', url, data=data, json=json, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 49, in request
response = session.request(method=method, url=url, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 461, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(111, 'Connect ion refused'))

account of [email protected] been locked from hello_obp.py

python3 hello_obp.py
Login as {'Authorization': 'DirectLogin username="[email protected]",password="d9c663",consumer_key="5bno1qctzfsbm1hzfpclmtqx0p5rolf0mdorhoef"'} to https://apisandbox.openbankproject.com/my/logins/direct
error: could not login
text: {"code":401,"message":"OBP-20013: The account has been locked, please contact administrator !"}

--- Get current user
current user data:
{'code': 400, 'message': 'OBP-20002: These DirectLogin parameters are missing: token'}
Traceback (most recent call last):
File "hello_obp.py", line 31, in
user_id = user['user_id']
KeyError: 'user_id'

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.