Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: JSON API Responses #987

Closed
jaswrks opened this issue Sep 15, 2016 · 9 comments
Closed

Feature Request: JSON API Responses #987

jaswrks opened this issue Sep 15, 2016 · 9 comments
Labels
Milestone

Comments

@jaswrks
Copy link
Contributor

@jaswrks jaswrks commented Sep 15, 2016

It would be wonderful if s2Member's Remote Operations API could support JSON input and output response data for compatibility with a wider variety of programming languages.

@jaswrks jaswrks added the enhancement label Sep 15, 2016
@priceactiontracker
Copy link

@priceactiontracker priceactiontracker commented Sep 18, 2016

i d love that

@jaswrks
Copy link
Contributor Author

@jaswrks jaswrks commented Sep 22, 2016

A possible short-term fix for developers working in JavaScript:
http://locutus.io/php/var/serialize/

However, it should also be noted that s2Member's Remote Operations API requires the use of a private API key. So using this in server-side JavaScript (e.g., Node apps) would be fine, but exposing your API key via client-side JS would be a very bad idea.

@jaswrks
Copy link
Contributor Author

@jaswrks jaswrks commented Oct 6, 2016

@raamdev Noting that this should probably get a higher priority than others in s2Member, simply because it's a relatively easy enhancement and the benefit for other developers would be enormous in terms of them being able to do custom things with the s2 API.

@raamdev raamdev added this to the Next Release milestone Oct 6, 2016
jaswrks pushed a commit to wpsharks/s2member-pro that referenced this issue Nov 11, 2016
jaswsinc
jaswrks pushed a commit that referenced this issue Nov 11, 2016
jaswsinc
jaswrks pushed a commit to wpsharks/s2member-pro that referenced this issue Nov 11, 2016
@jaswrks
Copy link
Contributor Author

@jaswrks jaswrks commented Nov 11, 2016

Next Release Changelog:

  • (s2Member Pro) JSON API: In the pro version it is now possible to use the s2Member Pro Remote Operations API to send and receive JSON input/output. This makes the Remote Operations API in s2Member compatible with a variety of scripting languages, not just PHP; i.e., prior to this release the Remote Operations API required that you always use PHP's serialize() and unserialize() functions when making API calls. The use of serialize() and unserialize() are no longer a requirement since input/output data is now sent and received in the more portable JSON format. For new code samples, please see: Dashboard → s2Member → API / Scripting → Pro API For Remote Operations. See also: issue #987 if you'd like additional details on this change.

    Note: The old s2Member Pro Remote Operations API has been deprecated but will continue to function just like before (via serialize() and unserialize()) for the foreseeable future. Moving forward, we recommend the new JSON code samples. Again, you will find those under: Dashboard → s2Member → API / Scripting → Pro API For Remote Operations

2016-11-11_00-32-49

@renzms
Copy link
Contributor

@renzms renzms commented Nov 22, 2016

@jaswsinc @raamdev

Confirmed Working! 👍

Tested using sample scripts from the panel.

@jaswrks
Copy link
Contributor Author

@jaswrks jaswrks commented Nov 22, 2016

@renzms Thank you :-)

@jaswrks
Copy link
Contributor Author

@jaswrks jaswrks commented Nov 22, 2016

@raamdev I'm referencing this KBA that needs to be updated following the release.
http://s2member.com/kb-article/pro-api-for-remote-operations/
~ If you can ping me when the release is made public I will update.

@raamdev
Copy link
Contributor

@raamdev raamdev commented Nov 22, 2016

@jaswsinc writes...

~ If you can ping me when the release is made public I will update.

Copy that. Will do.

@raamdev
Copy link
Contributor

@raamdev raamdev commented Nov 29, 2016

s2Member v161129 has been released and includes changes from this GitHub Issue. See the v161129 announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#987).

@raamdev raamdev closed this Nov 29, 2016
@wpsharks wpsharks locked and limited conversation to collaborators Nov 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.