Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe), packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier (CLI app), vendor/zapier-platform, and research/zapier vendor corpus. Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
35
vendor/zapier-platform/example-apps/oauth1-tumblr/triggers/like.js
vendored
Normal file
35
vendor/zapier-platform/example-apps/oauth1-tumblr/triggers/like.js
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
const perform = async (z, bundle) => {
|
||||
const url = 'https://api.tumblr.com/v2/user/likes';
|
||||
const response = await z.request(url);
|
||||
const result = response.data;
|
||||
return result.response.liked_posts || [];
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
key: 'like',
|
||||
noun: 'Like',
|
||||
|
||||
display: {
|
||||
label: 'New Like',
|
||||
description: 'Triggers when you like a post.',
|
||||
},
|
||||
|
||||
operation: {
|
||||
perform,
|
||||
sample: {
|
||||
blog_name: 'citriccomics',
|
||||
id: 3507845453,
|
||||
post_url: 'https://citriccomics.tumblr.com/post/3507845453',
|
||||
type: 'text',
|
||||
date: '2011-02-25 20:27:00 GMT',
|
||||
timestamp: 1298665620,
|
||||
state: 'published',
|
||||
format: 'html',
|
||||
reblog_key: 'b0baQtsl',
|
||||
tags: ['tumblrize', 'milky dog', 'mini comic'],
|
||||
note_count: 14,
|
||||
title: 'Milky Dog',
|
||||
body: '<p>Example body.</p>',
|
||||
},
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue