Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Can't use API #3

Open
agusnavce opened this issue Feb 14, 2018 · 1 comment
Open

Can't use API #3

agusnavce opened this issue Feb 14, 2018 · 1 comment
Assignees

Comments

@agusnavce
Copy link

I am trying to use the API. When I get the hash, I can't seem to do much more. Is Documentation ok?

@jeka-kiselyov
Copy link
Owner

You are right, it's outdated.

Based on https://github.com/jeka-kiselyov/dimeshift/blob/e74e9d239ce41a80bacb0f8ea3277dd120efb3c9/includes/api.js we need to use cookie with name 'logged_in_user' to set auth code for requests.

Check out how it works here: https://github.com/jeka-kiselyov/dimeshift/blob/e74e9d239ce41a80bacb0f8ea3277dd120efb3c9/includes/routes/users/signin.js

Get auth hash: https://dimeshift.docs.apiary.io/#reference/users/sign-in/sign-in

I will update docs. Thank you.

@jeka-kiselyov jeka-kiselyov self-assigned this Feb 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants