PlantLink

무료
분류별 danwiding | 업데이트됨 месяц назад | Other
Health Check

N/A

모든 토론으로 돌아가기

Is this api still available

Rapid account: Sandrastark
sandrastark
9 лет назад

Hi,
I was wondering if this api is actually still available, I am getting an error when trying to curl.
If not, could you recommend a plant api

thanks sandra stark

Rapid account: Danwiding
danwiding Commented 9 лет назад

ah. You need to create a user. You can either do this through the Angular.js app - https://dashboard.myplantlink.com/ or directly with the Register User endpoint. The angular app actually uses the same api documented on mashape. If you leave chrome or facebook dev tools running you can see the requests that occur with each action.

The username and password for all future requests are the email and password set up this way. I’m not regularly on Mashape and I am no longer employed by Oso Technologies but you can reach me at dan@oso.tc if you want a better walk through.

Rapid account: Sandrastark
sandrastark Commented 9 лет назад

Also, maybe to help clarify, my colleagues have tried as well and have gotten the same error.

Rapid account: Sandrastark
sandrastark Commented 9 лет назад

thanks.

I copied and pasted it from mashape directly. I am not sure what credentials I should have.

Rapid account: Danwiding
danwiding Commented 9 лет назад

As a heads up the authorization header contains your username and pw in a easily readable format - http://en.wikipedia.org/wiki/Basic_access_authentication

But perhaps fortunately your username and password aren’t correct. Invalid basic auth parameter generally means invalid credentials.

Rapid account: Sandrastark
sandrastark Commented 9 лет назад

Thanks so much for getting back to me! this is the error i receive:

~$ curl --get --include “https://plantlink.p.mashape.com/plants/241097” \

-H “Authorization: Basic c2FuZHJhc3Rhcms6ZW1vc2Vl”
-H "X-Mashape-Key: UIpaobkv6FmshXQUd5op4SUGm39Mp1c7tt2jsnpwG4UHA0afoS"
HTTP/1.1 401 Unauthorized
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Date: Sat, 13 Dec 2014 18:41:37 GMT
Server: Mashape/5.0.5
Set-Cookie: GOOGAPPUID=431; expires=Thu, 01-Feb-2018 14:41:37 GMT; path=/
Vary: Accept-Encoding
Content-Length: 367
Connection: keep-alive

[{“severity”: “Error”, “type”: “AuthError”, “traceback”: [" File “/base/data/home/apps/s~oso-tech/live.377436776115551932/app/controllers/commonHandlers.py”, line 226, in check_login\n message=‘The given Authorization header is not valid’)\n"], “type_detail”: “InvalidBasicAuthParameter”, “message”: “The given Authorization header is not valid”, “data”: null}]

Rapid account: Danwiding
danwiding Commented 9 лет назад

The API is still online and available. What’s the error when you received?

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입