Module: RubyLokaliseApi::Rest::Jwts

Included in:
RubyLokaliseApi::Rest
Defined in:
lib/ruby_lokalise_api/rest/jwts.rb

Instance Method Summary collapse

Instance Method Details

#create_jwt(project_id, req_params) ⇒ RubyLokaliseApi::Resources::Jwt

Creates a service JWT

Parameters:

  • project_id (String)
  • req_params (Hash)

Returns:

See Also:



12
13
14
15
16
17
18
# File 'lib/ruby_lokalise_api/rest/jwts.rb', line 12

def create_jwt(project_id, req_params)
  params = { query: project_id, req: req_params }

  data = endpoint(name: 'Jwts', params: params).do_post

  resource 'Jwt', data
end