Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
45
node_modules/pinterest-node-api/lib/resources/boards.js
generated
vendored
Normal file
45
node_modules/pinterest-node-api/lib/resources/boards.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
'use strict';
|
||||
|
||||
var pinterestResource = require('../Resource');
|
||||
var pinterestMethod = pinterestResource.methods.pinterestMethod;
|
||||
|
||||
module.exports = pinterestResource.extend({
|
||||
|
||||
createBoard: pinterestMethod({
|
||||
method: 'POST',
|
||||
path: 'v1/boards/'
|
||||
}),
|
||||
|
||||
getBoard: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/boards/{board}/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
getBoardPins: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/boards/{board}/pins/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
getUserBoards: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/boards/'
|
||||
}),
|
||||
|
||||
updateBoard: pinterestMethod({
|
||||
method: 'PATCH',
|
||||
path: 'v1/boards/{board}/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
deleteBoard: pinterestMethod({
|
||||
method: 'DELETE',
|
||||
path: 'v1/boards/{board}/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
})
|
||||
});
|
||||
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']
|
||||
})
|
||||
});
|
||||
35
node_modules/pinterest-node-api/lib/resources/sections.js
generated
vendored
Normal file
35
node_modules/pinterest-node-api/lib/resources/sections.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
'use strict';
|
||||
|
||||
var pinterestResource = require('../Resource');
|
||||
var pinterestMethod = pinterestResource.methods.pinterestMethod;
|
||||
|
||||
module.exports = pinterestResource.extend({
|
||||
|
||||
createBoardSection: pinterestMethod({
|
||||
method: 'PUT',
|
||||
path: 'v1/board/{board}/sections/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
getBoardSections: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/board/{board}/sections/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
getBoardSectionPins: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/board/sections/{section}/pins/',
|
||||
urlParams: ['section'],
|
||||
required: ['section']
|
||||
}),
|
||||
|
||||
deleteBoardSection: pinterestMethod({
|
||||
method: 'DELETE',
|
||||
path: 'v1/board/sections/{section}/',
|
||||
urlParams: ['section'],
|
||||
required: ['section']
|
||||
})
|
||||
});
|
||||
88
node_modules/pinterest-node-api/lib/resources/users.js
generated
vendored
Normal file
88
node_modules/pinterest-node-api/lib/resources/users.js
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
'use strict';
|
||||
|
||||
var pinterestResource = require('../Resource');
|
||||
var pinterestMethod = pinterestResource.methods.pinterestMethod;
|
||||
|
||||
module.exports = pinterestResource.extend({
|
||||
|
||||
getUserOwnInfo: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/'
|
||||
}),
|
||||
|
||||
getUserBoards: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/boards/'
|
||||
}),
|
||||
|
||||
getUserBoardSuggestions: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/boards/suggested/'
|
||||
}),
|
||||
|
||||
getUserPins: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/pins/'
|
||||
}),
|
||||
|
||||
searchUserBoards: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/search/boards/'
|
||||
}),
|
||||
|
||||
searchUserPins: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/search/pins/'
|
||||
}),
|
||||
|
||||
followBoard: pinterestMethod({
|
||||
method: 'POST',
|
||||
path: 'v1/me/following/boards/'
|
||||
}),
|
||||
|
||||
followUser: pinterestMethod({
|
||||
method: 'POST',
|
||||
path: 'v1/me/following/users/'
|
||||
}),
|
||||
|
||||
getUserFollowers: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/followers/'
|
||||
}),
|
||||
|
||||
getUserFollowingBoards: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/following/boards/'
|
||||
}),
|
||||
|
||||
getUserFollowingInterests: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/following/interests/'
|
||||
}),
|
||||
|
||||
getUserFollowingUsers: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/me/following/users/'
|
||||
}),
|
||||
|
||||
unfollowBoard: pinterestMethod({
|
||||
method: 'DELETE',
|
||||
path: 'v1/me/following/boards/{board}/',
|
||||
urlParams: ['board'],
|
||||
required: ['board']
|
||||
}),
|
||||
|
||||
unfollowUser: pinterestMethod({
|
||||
method: 'DELETE',
|
||||
path: 'v1/me/following/users/{user}/',
|
||||
urlParams: ['user'],
|
||||
required: ['user']
|
||||
}),
|
||||
|
||||
getUserInfo: pinterestMethod({
|
||||
method: 'GET',
|
||||
path: 'v1/users/{user}/',
|
||||
urlParams: ['user'],
|
||||
required: ['user']
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user