API-Octopart

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "ExtUtils::MakeMaker" : "0"
         }
      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Data::Dumper" : "2.167",
            "Digest::MD5" : "2.55",
            "JSON" : "2.97001",
            "LWP::Protocol::https" : "6.07",
            "LWP::UserAgent" : "6.34",
            "perl" : "5.010"
         }
      },
      "test" : {
         "requires" : {
            "Test::More" : "0"

META.yml  view on Meta::CPAN

license: gpl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: API-Octopart
no_index:
  directory:
    - t
    - inc
requires:
  Data::Dumper: '2.167'
  Digest::MD5: '2.55'
  JSON: '2.97001'
  LWP::Protocol::https: '6.07'
  LWP::UserAgent: '6.34'
  perl: '5.010'
resources:
  bugtracker: https://github.com/KJ7LNW/perl-API-Octopart/issues
  homepage: https://github.com/KJ7LNW/perl-API-Octopart
  repository: https://github.com/KJ7LNW/perl-API-Octopart.git
version: 1.003

Makefile.PL  view on Meta::CPAN

			},

			#x_IRC => 'irc://irc.perl.org/#maybe-someday?',
		},
	},
	TEST_REQUIRES => {
		'Test::More' => '0',
	},
	PREREQ_PM => {
		'LWP::Protocol::https' => '0',
		'Data::Dumper'         => '2.167',
		'Digest::MD5'          => '2.55',
		'JSON'                 => '2.97001',
		'LWP::Protocol::https' => '6.07',
		'LWP::UserAgent'       => '6.34',

	},
	dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
	clean => { FILES    => 'API-Octopart-*' },
);

lib/API/Octopart.pm  view on Meta::CPAN

$VERSION = 1.003;

use 5.010;
use strict;
use warnings;

use JSON;
use LWP::UserAgent;
use Digest::MD5 qw(md5_hex);

use Data::Dumper;

=head1 NAME

API::Octopart - Simple inteface for querying part status across vendors at octopart.com.

=head1 SYNOPSIS

	my $o = API::Octopart->new(
		token => 'abcdefg-your-octopart-token-here',
		cache => "$ENV{HOME}/.octopart/cache",



( run in 0.257 second using v1.01-cache-2.11-cpan-4d50c553e7e )