lildude / phpSmug

:camera: phpSmug is a simple object orientated wrapper for the new SmugMug API v2, written in PHP.
https://lildude.github.io/phpSmug
MIT License
42 stars 19 forks source link

JSON encode the `_config` option for ease of use #52

Closed lildude closed 6 years ago

lildude commented 6 years ago

As suggested in https://github.com/lildude/phpSmug/issues/49, it would be nice if phpSmug JSON encoded the _config option if provided as an array. This PR implements just that.

If an array is received for _config it is JSON encoded for you. If a string is received, it is assumed you have already JSON encoded the configuration.

Fixes https://github.com/lildude/phpSmug/issues/49

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed in 2 days if no further activity occurs. Thank you for your contributions.

lildude commented 6 years ago

Hand off stalebot