tinify-php icon indicating copy to clipboard operation
tinify-php copied to clipboard

Offer createKey() to register a new API key.

Open rolftimmermans opened this issue 9 years ago • 3 comments

rolftimmermans avatar May 30 '16 09:05 rolftimmermans

Mm.....This commits are too long to read. It should squash them to the less commits when merging this PR.

peter279k avatar Sep 06 '18 17:09 peter279k

Would love to see this in production! Also it would help to have some PHP Docs which state clearly which return values are possible.

I got two quick questions:

  1. Which value to expect when the account is using a paid plan and im calling Tinify\remainingCredits()?
  2. Is paid the return value of Tinify\payingState() when the account is using a paid plan?

element-code avatar Aug 27 '19 11:08 element-code

Hi there!

Once we have implemented the same logic for the other libraries we will put this into production and update the documentation.

  • Which value to expect when the account is using a paid plan and im calling Tinify\remainingCredits()?
  • Is paid the return value of Tinify\payingState() when the account is using a paid plan?
  1. If the user is on a paid plan the value will be null. If not then it will be a value between 0 and 500

  2. The value will be either "free" or "paying".

simonwahlstrom avatar Sep 02 '19 09:09 simonwahlstrom