class Projects::Api::PortalAPI

Public Class Methods

new(authToken) click to toggle source
  • Construct a new PortalsAPI using User's authTken.

Parameters

  • authToken
    • User's authToken.

Calls superclass method Projects::Api::API::new
# File lib/projects/api/PortalAPI.rb, line 22
def initialize(authToken)
        super(authToken,"")
end

Public Instance Methods

getPortals() click to toggle source
  • Parse the JSON response into respective objects.

  • Get list of portals.

Returns

  • List of Portal object.

# File lib/projects/api/PortalAPI.rb, line 34
def getPortals
        portalParser = PortalParser.new
        url = @@baseURL+'portals/'
        return portalParser.getPortals(ZohoHTTPClient.get(url,getQueryMap))
end