Class: Smartling::Project

Inherits:
Api
  • Object
show all
Defined in:
lib/smartling/projectapi.rb

Constant Summary

Constants inherited from Api

Api::EXPIRATION_OFFSET

Instance Attribute Summary

Attributes inherited from Api

#baseUrl, #prefix

Instance Method Summary collapse

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, #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