API-Octopart
view release on metacpan or search on metacpan
- json\_debug => 1
JSON response debugging. This is very verbose and dumps the Octopart response
in JSON.
- $o->has\_stock($part, %opts) - Returns the number of items in stock
$part: The model number of the part
%opts: Optional filters. No defaults are specified, it will return all unless limited.
- min\_qty => <n> - Minimum stock quantity, per seller.
If a sellerhas fewer than min\_qty parts in stock then the seller will be excluded.
- max\_moq => <n> - Maximum "minimum order quantity"
This is the max MOQ you will accept as being in
stock. For example, a 5000-part reel might be more
than you want for prototyping so set this to 10 or
lib/API/Octopart.pm view on Meta::CPAN
die "An Octopart API token is required." if (!$args{token});
return bless(\%args, $class);
}
=item * $o->has_stock($part, %opts) - Returns the number of items in stock
$part: The model number of the part
%opts: Optional filters. No defaults are specified, it will return all unless limited.
=over 4
=item * min_qty => <n> - Minimum stock quantity, per seller.
If a sellerhas fewer than min_qty parts in stock then the seller will be excluded.
=item * max_moq => <n> - Maximum "minimum order quantity"
This is the max MOQ you will accept as being in
( run in 0.432 second using v1.01-cache-2.11-cpan-0a6323c29d9 )