PlantLink

免费
通过 danwiding | 已更新 vor einem Monat | Other
Health Check

N/A

返回所有讨论

Is this api still available

Rapid account: Sandrastark
sandrastark
vor 9 Jahren

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 vor 9 Jahren

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 vor 9 Jahren

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

Rapid account: Sandrastark
sandrastark Commented vor 9 Jahren

thanks.

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

Rapid account: Danwiding
danwiding Commented vor 9 Jahren

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 vor 9 Jahren

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 vor 9 Jahren

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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论