API-Octopart

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

                        },
                        ...
                    },
                    'specs' => {
                        'case_package'       => '0805',
                        'composition'        => 'Thick Film',
                        'contactplating'     => 'Tin',
                        'leadfree'           => 'Lead Free',
                        'length'             => '2mm',
                        'numberofpins'       => '2',
                        'radiationhardening' => 'No',
                        'reachsvhc'          => 'No SVHC',
                        'resistance' =>
                          "10k\x{ce}\x{a9}",    # <- That is an Ohm symbol
                        'rohs'              => 'Compliant',
                        'tolerance'         => '1%',
                        'voltagerating_dc_' => '150V',
                        'width'             => '1.25mm',
                        ...
                    }
                },
                ...
            ]

- $o->octo\_query($q) - Queries the Octopart API

    Return the JSON response structure as a perl ARRAY/HASH given a query meeting Octopart's
    API specification.

- $o->octo\_query\_count() - Return the number of API calls so far.
- $o->query\_part\_detail($part)

    Return the JSON response structure as a perl ARRAY/HASH given a part search term
    shown as "$part".  This function calls $o->octo\_query() with a query from Octopart's
    "Basic Example" so you can easily lookup a specific part number.  The has\_stock()
    and get\_part\_stock\_detail() methods use this query internally.

# SEE ALSO

[https://octopart.com/](https://octopart.com/), [https://octopart.com/api](https://octopart.com/api)

# ATTRIBUTION

Octopart is a registered trademark and brand of Octopart, Inc.  All tradmarks,
product names, logos, and brands are property of their respective owners and no
grant or license is provided thereof.

The copyright below applies to this software module; the copyright holder is
unaffiliated with Octopart, Inc.

# AUTHOR

Originally written at eWheeler, Inc. dba Linux Global by Eric Wheeler
to facilitate optimization of RF matching components, but only for
components that are available for purchase at electronic component
vendors (of course!) [https://youtu.be/xbdBjR4szjE](https://youtu.be/xbdBjR4szjE)

# COPYRIGHT

Copyright (C) 2022 eWheeler, Inc. dba Linux Global
[https://www.linuxglobal.com/](https://www.linuxglobal.com/)

This module is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This module is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this module. If not, see &lt;http://www.gnu.org/licenses/>.



( run in 1.135 second using v1.01-cache-2.11-cpan-39bf76dae61 )