Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By rocknet on
I want to be be able to share my content to other websites. I want to share a list of events.
I know about RSS (not suitable for event content) and also about using iframes but have heard that iframes are being superceeded by APIs.
I don't know anything about APIs but a search of Drupal.org shows that there is a Content API available for Drupal 7. I was going to try it but saw that it requires a services module. I can't find a services module for Drupal 7.
I'm getting ahead of myself a bit as my real question is should I be using iframes or APIs? Advantages / Disadvantages?
Thanks
Steve
Comments
If you have a reason to avoid
If you have a reason to avoid RSS (I don't see why it would be inappropriate for publishing event information) and you are aware of why iframes are clunky, then you either use existing share APIs or do a lot of work (with web services). But it really comes down to what you really want to build.
You could look into https://drupal.org/project/oembed as a reasonably well-supported API.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
The Services module provides
The Services module provides an API from your website that can be accessed by other websites/apps/internet-enabled-device. It is fairly tricky to learn, but provides a very comprehensive, very flexible framework for sharing your content to other sites, with whatever level of security you are looking to have.