Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
45
node_modules/pinterest-node-api/lib/resources/pins.js
generated
vendored
Normal file
45
node_modules/pinterest-node-api/lib/resources/pins.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
'use strict';
|
||||
|
||||
var pinterestResource = require('../Resource');
|
||||
var pinterestMethod = pinterestResource.methods.pinterestMethod;
|
||||
|
||||
module.exports = pinterestResource.extend({
|
||||
|
||||
createPin: pinterestMethod({
|
||||
method: 'POST',
|
||||
path: 'v1/pins/'
|
||||
}),
|
||||
|
||||
getPin: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/pins/{pin}/',
|
||||
urlParams: ['pin'],
|
||||
required: ['pin']
|
||||
}),
|
||||
|
||||
getBoardPins: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/boards/{board}/pins/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
getUserPins: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/pins/'
|
||||
}),
|
||||
|
||||
updatePin: pinterestMethod({
|
||||
method: 'PATCH',
|
||||
path: 'v1/pins/{pin}/',
|
||||
urlParams: ['pin'],
|
||||
required: ['pin']
|
||||
}),
|
||||
|
||||
deletePin: pinterestMethod({
|
||||
method: 'DELETE',
|
||||
path: 'v1/pins/{pin}/',
|
||||
urlParams: ['pin'],
|
||||
required: ['pin']
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user