Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Me.prototype.get = function (query, fn) {
return request.get(this.wpcom, null, '/me', query, fn);
};
Me.prototype.connections = function (query, fn) {
return request.get(this.wpcom, null, '/me/connections', query, fn);
};
Site.prototype.renderEmbed = function (embed, query, fn) {
if ('string' !== typeof embed) {
throw new TypeError('expected an embed String');
}
var path = '/sites/' + this._id + '/embeds/render';
return request.get(this.wpcom, { embed_url: embed }, path, query, fn);
};
Media.prototype.get = function (query, fn) {
var path = '/sites/' + this._sid + '/media/' + this._id;
return request.get(this.wpcom, def, path, query, fn);
};
Site.prototype.get = function (query, fn) {
return request.get(this.wpcom, null, '/sites/' + this._id, query, fn);
};
Comment.prototype.get = function (query, fn) {
var path = '/sites/' + this._sid + '/comments/' + this._cid;
return request.get(this.wpcom, null, path, query, fn);
};
Users.prototype.suggest = function (query, fn) {
return request.get(this.wpcom, null, '/users/suggest', query, fn);
};
Me.prototype.sites = function (query, fn) {
return request.get(this.wpcom, null, '/me/sites', query, fn);
};
Me.prototype.likes = function (query, fn) {
return request.get(this.wpcom, null, '/me/likes', query, fn);
};
Me.prototype.groups = function (query, fn) {
return request.get(this.wpcom, null, '/me/groups', query, fn);
};