Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 640 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 640 Bytes

TubeMogul Unofficial gem

Quick hack on the Instagram Gem, adapted for the TubeMogul.

Not endpoint-complete by a far cry, not even tested at all.

This works for my purposes currently, but is obviously a use-at-own-risk piece of software.

Usage

require 'tubemogul'

TubeMogulAPI.configure do |config|
    # Required
    config.client_id		= ENV['TUBE_CLIENT_ID']
    config.client_secret	= ENV['TUBE_CLIENT_SECRET']
end

auth_result = TubeMogulAPI.get_access_token
#<Hashie::Mash ... >

client = TubeMogulAPI::Client.new(access_token: auth_result.token)
#<TubeMogulAPI::Client ... >

client.campaigns
#<Hashie::Mash ... >