ConvertAPI / convertapi-library-php

A PHP library for the ConvertAPI
https://www.convertapi.com
Other
44 stars 22 forks source link

Use Bearer authentication #60

Closed tomasr78 closed 3 days ago

tomasr78 commented 2 weeks ago

Change query authentication to bearer authentication.

curl -X GET https://v2.convertapi.com/user -H 'Authorization: Bearer secret_or_token'

tomasr78 commented 2 weeks ago

The property that accepts the secret is ConvertApi::setApiSecret('xxxxxx');. I suggest renaming it to setApiCredentials because it will match the idea that a secret or token is accepted and not only a secret.

laurynas-convertapi commented 3 days ago

Released in version https://github.com/ConvertAPI/convertapi-library-php/releases/tag/v3.0.0