We publish best practice code examples on Github for accessing our APIs.
NOTE: These are reference implementations that have to be adapted to fit your specific use cases, system requirements and constraints.
Receiving via s3push API
These refrence implementations are available for the s3push API:
- receive s3push via AWS, converting news items to a different format using AWS Lambda functions (JavaScript)
- receive s3push via AWS, forward to WordPress' REST-API (JavaScript, PHP)
- receive s3push, forward to a CMS via API, asynchoronously checking import status (Python)
Receiving via wireQ-API
These refrence implementations are available for the wireQ API:
- receive via wireQ-API (GET/DELETE or POST workflow), saving to local file system (Python)
- WordPress plugin, receiving via wireQ and importing via WordPress Cronjob (PHP)
- receive via wireQ-API (GET/DELETE or POST workflow), forwarding to ActiveMQ (Java)
Embeding via web components
We use web components to display social media embeds, i.e. X (Twitter) or YouTube, infographics, images and other multimedia content embedded into the body of an article. You can find a reference implementation here:
Based on this reference implementation, you may implement the integration of embedded content into your content management platform, providing for additional functionality consistent with your use case. For example, you may want to provide privacy protections for your readers, adding opt-in or two-click embeds of YouTube videos.
Other
We provide an extra repository with code snippets that aim to help you accomplish common tasks when dealing wit dpa-digitalwires content.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article