Sha256: f04c7328b22ba71df9ac8c79ba41eaa1736fc19c51db32a928260462d34e6f32
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
# encoding: utf-8 module RDStation # More info: https://developers.rdstation.com/pt-BR/reference/contacts class Fields include HTTParty BASE_URL = 'https://api.rd.services/platform/contacts/fields'.freeze def initialize(auth_token) @auth_token = auth_token end def all response = self.class.get(BASE_URL, headers: required_headers) ApiResponse.build(response) end private def required_headers { "Authorization" => "Bearer #{@auth_token}", "Content-Type" => "application/json" } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdstation-ruby-client-1.2.1 | lib/rdstation/fields.rb |
rdstation-ruby-client-1.2.0 | lib/rdstation/fields.rb |