Skip to content

Commit

Permalink
WPCOM: Add "googleAppsFilterBySiteId" endpoint (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
umurkontaci committed Feb 26, 2016
1 parent e489bf2 commit 4b17647
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/lib/wpcom-undocumented/lib/undocumented.js
Original file line number Diff line number Diff line change
Expand Up @@ -1712,9 +1712,14 @@ Undocumented.prototype.sitePurchases = function( siteId, fn ) {
this.wpcom.req.get( { path: '/sites/' + siteId + '/purchases' }, fn );
};

Undocumented.prototype.googleAppsListAll = function( domainName, fn ) {
Undocumented.prototype.googleAppsFilterByDomain = function( domainName, fn ) {
debug( '/domains/:domainName/google-apps' );
this.wpcom.req.get( { path: '/domains/' + domainName + '/google-apps' }, fn );
return this.wpcom.req.get( { path: '/domains/' + domainName + '/google-apps' }, fn );
};

Undocumented.prototype.googleAppsFilterBySiteId = function( siteId, fn ) {
debug( '/sites/:siteId/google-apps/site' );
return this.wpcom.req.get( { path: '/sites/' + siteId + '/google-apps' }, fn );
};

Undocumented.prototype.deleteWPCOMFollower = function( siteId, followerId, fn ) {
Expand Down

0 comments on commit 4b17647

Please sign in to comment.