Page 1 of 1

rest api for web publishing?

Posted: Sat Oct 05, 2013 7:05 pm
by Sean Kelley

Hi
I thought you guys might have a good recommendation for a service that would allow me to publish web pages via REST. O want to share in app data in html format for social sharing and exposure to web crawlers.

I found a couple of ideas but I am not finding the right thing yet:
wordpress.com does not allow commercial content and is more blog.
blogger.com is google, blog, and has api limits.
Osmek (http://osmek.com/docs) looks like it might work but not sure I need a CMS.

What else is out there that would allow for creating web pages via REST?


rest api for web publishing?

Posted: Sat Oct 05, 2013 7:16 pm
by maxkatz

Those are the services I'd recommend too. You can also check out: http://www.programmableweb.com/ for more APIs.


rest api for web publishing?

Posted: Sun Oct 06, 2013 2:25 pm
by Sean Kelley

thanks Max, I have been searching http://www.programmableweb.com but there does not seem to be much to choose from in this area. A couple more for my list include:

BitBalloon, Pen.io, and Prismic.

Osmek looks the most interesting but I am having a little trouble forming a service call to access it to create something for the first time. I am wondering if my appery service is configured correctly or if the problem is on Osmek's end.

http://osmek.com/docs/api-methods#met...
http://osmek.com/docs/api-overview

I am getting the error returned:
"msg":"The variable api_key was not defined"

Basic requirements for creating something include:
api_key
bin_id

I created a rest service like so

Image

and my test (with sample title):
Image


rest api for web publishing?

Posted: Sun Oct 06, 2013 4:11 pm
by maxkatz

I'm not familiar with this particular API. I checked the docs and your request looks correct. Send us a curl command that works and we'll help you set it up in Appery.io


rest api for web publishing?

Posted: Sun Oct 06, 2013 4:48 pm
by Sean Kelley

hi-
this worked:
code
curl -d
"api_key=xID1nJmXSfveQPUzthWMrqA2VRKkYuC5&section_id=8663&title=CURL Test Title" http://api.osmek.com/create
/code

I changed bin_id to section_id in appery service but still same error


rest api for web publishing?

Posted: Sun Oct 06, 2013 5:40 pm
by maxkatz

It works when you set the Content Type to: x-www-form-urlencoded


rest api for web publishing?

Posted: Sun Oct 06, 2013 6:33 pm
by Sean Kelley

great- thanks for your help!