dcard
Version:
👫 Unofficial Dcard API wrapper for Node.js developers.
19 lines (15 loc) • 532 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createPhoto = exports.listPhoto = undefined;
var _request = require('../request');
var listPhoto = exports.listPhoto = function listPhoto() {
return (0, _request.api)('me/photos').then(_request.filterError).then(_request.parseJSON);
};
var createPhoto = exports.createPhoto = function createPhoto(data) {
return (0, _request.api)('photos', {
method: 'post',
body: data
}).then(_request.filterError).then(_request.parseJSON);
};