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

marvellous

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marvellous

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Marvellous

Marvel API Gem

Ruby wrapper for Marvel Comics API.

Installation

Add this line to your application's Gemfile:

gem 'marvellous'

And then execute:

$ bundle

Or install it yourself as:

$ gem install marvellous

Usage

Please register first in the Marvel Comics Developer Portal to get your API credentials (a public key and a private key, you'll need them both to configure and instantiate a client).

Instantiate a client

client = Marvellous::Client.new( :public_key => 'abcd1234', :private_key => '5678efgh')

# fetch a list of characters (https://developer.marvel.com/docs#!/public/getCreatorCollection_get_0)
client.characters # by default pagination of 10 items is implemented
client.characters({page_size: 20, page_num: 2}) # to change the default pagination settings
client.characters({paginate: false}) # to turn off pagination

# fetch a single character by characterId (https://developer.marvel.com/docs#!/public/getCreatorCollection_get_0)
client.character({id: 1009610})

FAQs

Package last updated on 11 Nov 2017

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