Class: Smartling::Project
Instance Attribute Summary
Attributes inherited from Api
Instance Method Summary collapse
-
#details(projectId, params = nil) ⇒ Object
Project Details - /projects-api/v2/projects/projectId (GET).
-
#list(accountUid, params = nil) ⇒ Object
List Projects - /accounts-api/v2/accounts/accountUid/projects (GET).
Methods inherited from Api
#call, #check_response, #format_api_error, #get, #get_raw, #initialize, #log=, #post, #post_file, #post_file_raw, #process, #process_auth, #proxy=, #refresh, sandbox, #token, #token_header, #uri
Constructor Details
This class inherits a constructor from Smartling::Api
Instance Method Details
#details(projectId, params = nil) ⇒ Object
Project Details - /projects-api/v2/projects/projectId (GET)
28 29 30 31 |
# File 'lib/smartling/projectapi.rb', line 28 def details(projectId, params = nil) uri = uri('projects-api/v2/projects/' + projectId, params) return get(uri) end |
#list(accountUid, params = nil) ⇒ Object
List Projects - /accounts-api/v2/accounts/accountUid/projects (GET)
22 23 24 25 |
# File 'lib/smartling/projectapi.rb', line 22 def list(accountUid, params = nil) uri = uri('accounts-api/v2/accounts/' + accountUid + '/projects', params) return get(uri) end |