So say i wanna build a website widget where people can install it with a few lines of codes. And in that widget users are able to sign up for my website or see certain information that's on my website.
Is something like this possible to do on rails?
I'm fairly new to building API's or widgets (are they even the same thing?), so I'm trying to see how to go about learning these type of stuff.
Absolutely! You need to do some interesting things for this, but I've built some JS embeds in the past. They're pretty fun.
They're probably not technically APIs, their more JS libraries you're building, but they will hit URLs in your app, that might be APIs. Since it's all your own JS, it's not really an API because an API is generally for other developers to consume, not yourself. It's a gray area because it's your code running on someone else's website though.
Thanks for the great response, Chris!
Is there any disadvantages to using Widgets over API's? Cause it seems to me that widgets are far more easier to install than certain API's.
So is Intercom.io considered an API or widget?
Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.