Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:35 +09:00
commit d641ec3923
2315 changed files with 250301 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
'use strict';
var userToken = process.env.PINTEREST_USER_TOKEN;
var pinterest = require('../../../lib')(userToken);
var pinsRequest = async function () {
/**
* passing parameters
* -------------------
*
* board (required) (The board name in the format: <username>/<board_name>)
* note (required)
* link
*
* (one of the following three options)
* image (Upload the image)
* image_url (The link of the image)
* image_base64 (The link of a Base64 encoded image)
*
* (optional)
* fields (attribution, board, color, counts, created_at, creator, id, image, link, media, metadata, note, original_link, url)
*/
var data = {
board: 'pideveloper/board-2',
note: 'it\'s a test pin desc.',
image_url: 'https://www.birmingham.ac.uk/Images/College-EPS-only/outreach/engineering/aerospace-engineering.jpg'
};
try {
var response = await pinterest.pins.createPin(data);
} catch (error) {
return;
}
};
pinsRequest();

View File

@@ -0,0 +1,22 @@
'use strict';
var userToken = process.env.PINTEREST_USER_TOKEN;
var pinterest = require('../../../lib')(userToken);
var pinsRequest = async function () {
/**
* passing parameters
* -------------------
*
* pin (pin ID)
*/
var pin = '806144402027821208';
try {
var response = await pinterest.pins.deletePin(pin);
} catch (error) {
return;
}
};
pinsRequest();

View File

@@ -0,0 +1,25 @@
'use strict';
var userToken = process.env.PINTEREST_USER_TOKEN;
var pinterest = require('../../../lib')(userToken);
var pinsRequest = async function () {
/**
* passing parameters
* -------------------
*
* board (The board name in the format: <username>/<board_name>)
*
* (optional)
* fields (attribution, board, color, counts, created_at, creator, id, image, link, media, metadata, note, original_link, url)
*/
var board = 'pideveloper/test-board';
try {
var response = await pinterest.pins.getBoardPins(board);
} catch (error) {
return;
}
};
pinsRequest();

View File

@@ -0,0 +1,25 @@
'use strict';
var userToken = process.env.PINTEREST_USER_TOKEN;
var pinterest = require('../../../lib')(userToken);
var pinsRequest = async function () {
/**
* passing parameters
* -------------------
*
* pin (pin ID)
*
* (optional)
* fields (attribution, board, color, counts, created_at, creator, id, image, link, media, metadata, note, original_link, url)
*/
var pin = '806144402027821208';
try {
var response = await pinterest.pins.getPin(pin);
} catch (error) {
return;
}
};
pinsRequest();

View File

@@ -0,0 +1,23 @@
'use strict';
var userToken = process.env.PINTEREST_USER_TOKEN;
var pinterest = require('../../../lib')(userToken);
var pinsRequest = async function () {
/**
* passing parameters
* -------------------
*
* (optional)
* fields (attribution, board, color, counts, created_at, creator, id, image, link, media, metadata, note, original_link, url)
*/
var data = {};
try {
var response = await pinterest.pins.getUserPins(data);
} catch (error) {
return;
}
};
pinsRequest();

View File

@@ -0,0 +1,34 @@
'use strict';
var userToken = process.env.PINTEREST_USER_TOKEN;
var pinterest = require('../../../lib')(userToken);
var pinsRequest = async function () {
/**
* passing parameters
* -------------------
*
* pin (pin ID)
*
* board (The board name in the format: <username>/<board_name>)
* note
* link
*
* (optional)
* fields (attribution, board, color, counts, created_at, creator, id, image, link, media, metadata, note, original_link, url)
*/
var pin = '806144402027821208';
var data = {
board: 'pideveloper/board-2',
note: 'it\'s a aerospace test pin.',
link: 'https://aerospace.org/'
};
try {
var response = await pinterest.pins.updatePin(pin, data);
} catch (error) {
return;
}
};
pinsRequest();