Sha256: a619562b025e56162332f4d0a99e526f508bdea39fa5dfddbd24deaae56dbc10

Contents?: true

Size: 557 Bytes

Versions: 8

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

module RubyLokaliseApi
  module Rest
    module Jwts
      # Creates a service JWT
      #
      # @see https://developers.lokalise.com/reference/create-service-jwt
      # @return [RubyLokaliseApi::Resources::Jwt]
      # @param project_id [String]
      # @param req_params [Hash]
      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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-lokalise-api-9.3.0 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-9.2.1 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-9.2.0 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-9.0.1 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-9.0.0 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-8.0.1 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-8.0.0 lib/ruby_lokalise_api/rest/jwts.rb
ruby-lokalise-api-8.0.0.rc1 lib/ruby_lokalise_api/rest/jwts.rb