Universal Inspirational Quotes

FREEMIUM
Door HealThruWords | Bijgewerkt vor 23 Tagen | Other
Populariteit

8.3 / 10

Latency

505ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

how to know the id

Rapid account: Jeremy Dotx
jeremy.dotx
vor 9 Jahren

Hi, how to know the id of the quote? since if Iโ€™ll leave blank the id, it will not return random. Thanks.

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

Closing this ticket.

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

Hi Jeremy,

Did it work for you?

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

Mashape do not cache anything so It might come from the origin server.

I found a workaround by adding a random number to a parameter that will be ignored by the backend like this: https://healthruwords.p.mashape.com/v1/quotes/?n=22

where
n is a parameter that will be ignored
and 22 is a random number

This bypasses all the caches. We are currently upgrading the platform and hopefully this workaround will not be necessary anymore soon enough.

Let me know if that works for you.

Rapid account: Jeremy Dotx
jeremy.dotx Commented vor 9 Jahren

No, didnโ€™t have that (X-Mashape-Version and X-Mashape-Proxy-Response) in the response header.

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

Do you receive this last header X-Mashape-Proxy-Response=true?

Headers sent as response

When consuming an API through Mashape, you will always receive the following headers appended to the response:

X-Mashape-Version
The current version of the proxy used by Mashape.

X-Mashape-Proxy-Response
Set to โ€œtrueโ€ when the response has beenentirelygenerated by Mashape and not by the API. You will see this header, for example, when the API is temporary down or when you use invalid Mashape credentials.

http://docs.mashape.com/headers#headers-request

Rapid account: Jeremy Dotx
jeremy.dotx Commented vor 9 Jahren

thanks. ๐Ÿ˜ƒ

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

Ok, hang on to your hat ๐Ÿ˜ƒ and we will get Mashapeโ€™s answer to this issue. I havenโ€™t see a way to bypass their cache so far.

Rapid account: Jeremy Dotx
jeremy.dotx Commented vor 9 Jahren

Hi, yes, did try curl on the terminal and also the rest-console plugin of chrome. still the return is not random.

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

Just a question meanwhile have you tried with cUrl on command line? Do you get the same result?

Rapid account: Heal Thru Words
HealThruWords Commented vor 9 Jahren

No worries. I believe there is a cache issue at Mashape.
Let me check with them and we get back to you.

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen