Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tubemogul_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tubemogul_api

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

TubemogulApi CircleCI

Unofficial client library for Tubemogul API

Installation

Add this line to your application's Gemfile:

gem 'tubemogul_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tubemogul_api

Usage

# If you use the default ENV variables TUBEMOGUL_CLIENT_ID and TUBEMOGUL_SECRET_KEY, you can get a
# connection by:

connection = TubemogulApi::Connection.new

# Otherwise you can explicitly pass client_id and secret_key:
connection = TubemogulApi::Connection.new(
  client_id: ENV.fetch('TUBEMOGUL_CLIENT_ID'),
  secret_key: ENV.fetch('TUBEMOGUL_SECRET_KEY')
)

service = TubemogulApi::Service::Advertiser.new(connection)
service.get(10) # returns the advertiser with the ID 10
service.get_all # returns all advertisers

Note: Currently only get and get_all requests are implemented and for a limited set of services. Check lib/tubemogul_api/service directory to see which services are available.

Also the spec/integration directory contains usage examples.

Development

Run specs with bundle exec rspec.

To recreate or create new VCR episodes, you need to set proper values for env vars. Check .env to see the list of env variables required. We recommend that you set it in .env.test file.

Note that some specs fail when recording new VCR episodes due to filtering of sensitive data. But after that, all specs should pass in playback mode.

We run rake rubocop to make sure, everything looks good.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the TubemogulApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ad2games/tubemogul_api.

FAQs

Package last updated on 05 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc