class Plagscan::Token

PlagScan access token API

Public Class Methods

fetch(client_id:, client_secret:) click to toggle source

token REST API @param [String] client_id your organisation ID @param [String] client_secret the API key from www.plagscan.com/apisetup @return [Hash] containing access_token and expires_in

# File lib/plagscan/token.rb, line 14
def self.fetch(client_id:, client_secret:)
  Plagscan::Request.json_request(
    'token',
    method: :post, body: { client_id: client_id, client_secret: client_secret }
  )
end