Sha256: 5869d978b50a4831d981f05187bd8112c4dcf9a56261797025460b81fb90eb14

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

module Dingtalk
  module Api
    # get token
    class OapiGettokenRequest < Base
      attr_accessor :appkey, :appsecret

      def getHttpMethod
        'GET'
      end
    
      def getapiname
        'dingtalk.oapi.gettoken'
      end

      def getResponse
        super.fetch('access_token', '')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dingtalk-ruby-0.1.3 lib/dingtalk/api/OapiGettokenRequest.rb
dingtalk-ruby-0.1.2 lib/dingtalk/api/OapiGettokenRequest.rb