Comments

The WP Mobile Pack content API implements a series of endpoints that are responsible for exporting comments. These are as follows:

Please note all endpoints support JSONP.

All URL’s are relative to the WP Mobile Pack installation folder, typically located at /wp-content/plugins/wordpress-mobile-pack.

1) Exporting comments

Relative FREE URL:/wp-content/plugins/wordpress-mobile-pack/export/content.php?content=exportcomments&articleId=1&callback=CallbackMethod

Relative PRO URL:/wp-content/plugins/wordpress-mobile-pack-pro/frontend/export/content.php?content=exportcomments&articleId=1&callback=CallbackMethod

Sample code: on Gist

Parameters:

Response type:JSONP

Response format (for a comment):

2) Saving comments

Relative FREE URL:/wp-content/plugins/wordpress-mobile-pack/export/content.php?content=savecomment&articleId=1&author=Author&email=user@dummyemailaddress.com& comment=comment%text&code=accessToken&callback=CallbackMethod

Relative PRO URL:/wp-content/plugins/wordpress-mobile-pack-pro/frontend/export/content.php?content=savecomment&articleId=1&author=Author&email=user@dummyemailaddress.com& comment=comment%text&code=accessToken&callback=CallbackMethod

Parameters:

Response type: JSONP

Response format:

Last updated