Class: Projects::Api::PortalAPI
- Defined in:
- lib/projects/api/PortalAPI.rb
Overview
- PortalsAPI is used to get list of portals.
Instance Method Summary collapse
-
#getPortals ⇒ Object
- Parse the JSON response into respective objects.
-
#initialize(authToken) ⇒ PortalAPI
constructor
- Construct a new PortalsAPI using User's authTken.
Methods inherited from API
Constructor Details
#initialize(authToken) ⇒ PortalAPI
- Construct a new PortalsAPI using User's authTken.
Parameters
- * authToken
- User's authToken.
22 23 24 |
# File 'lib/projects/api/PortalAPI.rb', line 22 def initialize(authToken) super(authToken,"") end |
Instance Method Details
#getPortals ⇒ Object
-
Parse the JSON response into respective objects.
-
Get list of portals.
Returns
- List of Portal object.
34 35 36 37 38 |
# File 'lib/projects/api/PortalAPI.rb', line 34 def getPortals portalParser = PortalParser.new url = @@baseURL+'portals/' return portalParser.getPortals(ZohoHTTPClient.get(url,getQueryMap)) end |