Lokalise APIv2 Ruby SDK

Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.

View the Project on GitHub lokalise/ruby-lokalise-api




JWT

Create JWT

Doc

@client.create_jwt(project_id, params = {}) # Input:
                                            ## project_id (string, required)
                                            ## params (hash)
                                            # Output:
                                            ## A JWT resource

For example:

project_id = "123.abcd"

response = @client.create_jwt project_id, service: :ota

response.jwt # => 'eyJ0eXAiOi...`

Alternatively:

project = @client.project project_id

response = project.create_jwt service: :ota