\\\",\\n \\\"css_content\\\" : \\\".tweet-text{background-color:#fff2ac;background-image:linear-gradient(to right,#ffe359 0,#fff2ac 100%);font-weight:bolder;font-size:32px;font-family:Roboto,sans-serif;padding:4px}\\\",\\n \\\"generate_img_url\\\": true\\n}\",\"__typename\":\"OauthBody\"},\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":[],\"cellParams\":[],\"tab\":\"Body\",\"__typename\":\"OauthReq\"},\"marketplaceContent\":null,\"integrationConnections\":{\"nodes\":[{\"id\":\"int_xOsZ1DQx\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-custom-interval-from-schedule-api\",\"title\":\"Convert HTML to Image with HTML to Image API on Custom Interval from Schedule API\",\"triggerKey\":\"schedule-custom-interval\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_0GsVR8Yv\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-daily-schedule-from-schedule-api\",\"title\":\"Convert HTML to Image with HTML to Image API on Daily schedule from Schedule API\",\"triggerKey\":\"schedule-daily\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_R7s42dBp\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-monthly-schedule-from-schedule-api\",\"title\":\"Convert HTML to Image with HTML to Image API on Monthly Schedule from Schedule API\",\"triggerKey\":\"schedule-monthly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_pQsOgeoo\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-weekly-schedule-from-schedule-api\",\"title\":\"Convert HTML to Image with HTML to Image API on Weekly schedule from Schedule API\",\"triggerKey\":\"schedule-weekly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_0GsVR8mD\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-custom-interval-from-schedule-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on Custom Interval from Schedule API\",\"triggerKey\":\"schedule-custom-interval\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_LMsZOAQ6\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-daily-schedule-from-schedule-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on Daily schedule from Schedule API\",\"triggerKey\":\"schedule-daily\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_g2sZeG3Y\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-monthly-schedule-from-schedule-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on Monthly Schedule from Schedule API\",\"triggerKey\":\"schedule-monthly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_XespbM6v\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-weekly-schedule-from-schedule-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on Weekly schedule from Schedule API\",\"triggerKey\":\"schedule-weekly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_9NsEG77L\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-custom-interval-from-schedule-api\",\"title\":\"Convert URL to Image with HTML to Image API on Custom Interval from Schedule API\",\"triggerKey\":\"schedule-custom-interval\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_bYs9nGG3\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-daily-schedule-from-schedule-api\",\"title\":\"Convert URL to Image with HTML to Image API on Daily schedule from Schedule API\",\"triggerKey\":\"schedule-daily\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_VysqBbBO\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-monthly-schedule-from-schedule-api\",\"title\":\"Convert URL to Image with HTML to Image API on Monthly Schedule from Schedule API\",\"triggerKey\":\"schedule-monthly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_YEsOaYY9\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-weekly-schedule-from-schedule-api\",\"title\":\"Convert URL to Image with HTML to Image API on Weekly schedule from Schedule API\",\"triggerKey\":\"schedule-weekly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_P3sD9rdG\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-custom-interval-from-schedule-api\",\"title\":\"Convert URL to PDF with HTML to Image API on Custom Interval from Schedule API\",\"triggerKey\":\"schedule-custom-interval\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_e9sByxAm\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-daily-schedule-from-schedule-api\",\"title\":\"Convert URL to PDF with HTML to Image API on Daily schedule from Schedule API\",\"triggerKey\":\"schedule-daily\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_avsjnAma\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-monthly-schedule-from-schedule-api\",\"title\":\"Convert URL to PDF with HTML to Image API on Monthly Schedule from Schedule API\",\"triggerKey\":\"schedule-monthly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_pQsOgePQ\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-weekly-schedule-from-schedule-api\",\"title\":\"Convert URL to PDF with HTML to Image API on Weekly schedule from Schedule API\",\"triggerKey\":\"schedule-weekly\",\"triggerApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"}],\"__typename\":\"IntegrationConnection\"}},\"otherApp\":{\"id\":\"app_XaLhW4\",\"name\":\"Schedule\",\"nameSlug\":\"schedule\",\"description\":\"Trigger workflows on an interval or cron schedule.\",\"appPrompts\":[],\"authType\":null,\"customFieldsDescriptionMd\":\"\",\"oauthScopes\":[],\"customFields\":[],\"oauthReqsByType\":{\"requestToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":\"OAuth\",\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"authorization\":{\"httpMethod\":\"GET\",\"url\":\"\",\"urlParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"redirect_uri\",\"value\":\"{{oauth.redirect_uri}}\",\"__typename\":\"Kv\"},{\"key\":\"state\",\"value\":\"{{oauth.state}}\",\"__typename\":\"Kv\"},{\"key\":\"response_type\",\"value\":\"code\",\"__typename\":\"Kv\"},{\"key\":\"scope\",\"value\":\"{{oauth.space_separated_scopes}}\",\"__typename\":\"Kv\"}],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"accessToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[{\"key\":\"content-type\",\"value\":\"application/x-www-form-urlencoded\",\"__typename\":\"Kv\"},{\"key\":\"accept\",\"value\":\"application/json\",\"__typename\":\"Kv\"}],\"body\":null,\"bodyParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"client_secret\",\"value\":\"{{oauth.client_secret}}\",\"__typename\":\"Kv\"},{\"key\":\"redirect_uri\",\"value\":\"{{oauth.redirect_uri}}\",\"__typename\":\"Kv\"},{\"key\":\"grant_type\",\"value\":\"authorization_code\",\"__typename\":\"Kv\"},{\"key\":\"code\",\"value\":\"{{oauth.code}}\",\"__typename\":\"Kv\"}],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"refreshToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[{\"key\":\"content-type\",\"value\":\"application/x-www-form-urlencoded\",\"__typename\":\"Kv\"},{\"key\":\"accept\",\"value\":\"application/json\",\"__typename\":\"Kv\"}],\"body\":null,\"bodyParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"client_secret\",\"value\":\"{{oauth.client_secret}}\",\"__typename\":\"Kv\"},{\"key\":\"grant_type\",\"value\":\"refresh_token\",\"__typename\":\"Kv\"},{\"key\":\"refresh_token\",\"value\":\"{{oauth.refresh_token}}\",\"__typename\":\"Kv\"}],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"__typename\":\"OauthReqsByType\"},\"__typename\":\"App\",\"registryComponents\":[{\"id\":\"sc_WGiNp2R\",\"key\":\"schedule-custom-interval\",\"name\":\"Custom Interval\",\"description\":\"Trigger your workflow every N hours, minutes or seconds.\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_Meixnjq\",\"key\":\"schedule-daily\",\"name\":\"Daily schedule\",\"description\":\"Trigger your workflow every day.\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_5ZiZBK2\",\"key\":\"schedule-monthly\",\"name\":\"Monthly Schedule\",\"description\":\"Trigger your workflow on one or more days each month at a specific time (with timezone support).\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_1LiRJWp\",\"key\":\"schedule-weekly\",\"name\":\"Weekly schedule\",\"description\":\"Trigger your workflow on one or more days each week at a specific time (with timezone support).\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"}],\"componentCodeScaffoldRaw\":\"\",\"testRequest\":{\"httpMethod\":\"GET\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[{\"field\":\"uid\",\"path\":\"id\",\"optional\":null,\"__typename\":\"Extract\"},{\"field\":\"info\",\"path\":\"email\",\"optional\":null,\"__typename\":\"Extract\"}],\"metadataExtracts\":null,\"cellParams\":[],\"tab\":null,\"__typename\":\"OauthReq\"},\"marketplaceContent\":{\"id\":\"800\",\"markdown\":\"# Overview\\n\\nThe Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.\\n\\n# Example Use Cases\\n\\n- **Daily Sales Reports**: Automatically aggregate and send daily sales data from an e-commerce platform such as Shopify to a Google Sheets document every morning. This scheduled workflow could involve fetching the previous day's sales data, processing it, and using the Google Sheets API to update a spreadsheet, providing an up-to-date sales report for quick review.\\n\\n- **Social Media Posting**: Schedule regular social media posts across platforms like Twitter or Facebook by setting up a workflow that runs weekly. It could select content from a predefined source, like a CMS or database, format the post, and use the respective social media platform's API to publish the content, keeping your social media presence active with minimal effort.\\n\\n- **Database Backup and Maintenance**: Create a weekly or monthly scheduled workflow to back up your database to a service like Dropbox or AWS S3. It could export the latest database snapshot, compress and encrypt the data, and then store it securely offsite. Additionally, this can be coupled with database maintenance tasks such as cleaning up old logs or optimizing tables.\\n\",\"__typename\":\"MarketplaceContent\"}}}","hasNext":false}}
with HTML to Image and Schedule?
Create an image from HTML. See the documentation
Create a PDF file from HTML. See the documentation
Capture a screenshot from a URL. See the documentation
Create a PDF from a URL. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
html_to_image: {
type: "app",
app: "html_to_image",
}
},
async run({steps, $}) {
const data = {
"html_content" : "<div class=\"mt-4 p-4 text-center\"style=width:500px><span class=\"mb-4 tweet-text\">This is Little Bear. He tolerates baths because he knows how phenomenal his floof will appear afterwards. 13/10</span><div class=\"mt-2 p-4\"><img class=\"mt-4 border rounded-circle shadow\"src=https://docs.htmlcsstoimage.com/assets/images/dog.jpg width=100px></div><h4 class=mt-2>WeRateDogs</h4><span class=text-muted>@dog_rates</span></div><link href=https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css rel=stylesheet crossorigin=anonymous integrity=sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk><link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@700\"rel=stylesheet>",
"css_content" : ".tweet-text{background-color:#fff2ac;background-image:linear-gradient(to right,#ffe359 0,#fff2ac 100%);font-weight:bolder;font-size:32px;font-family:Roboto,sans-serif;padding:4px}",
"generate_img_url": true
}
return await axios($, {
method: "post",
url: `https://api.htmlcsstoimg.com/api/v1/generateImage`,
headers: {
"CLIENT-API-KEY": `${this.html_to_image.$auth.api_key}`,
},
data,
})
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.