Hi
I just started using the Octopart API for my personal excel BOMs, I followed the setup on your blog post:
http://octopart.com/blog/archives/2013/7/octopart-in-excelHowever, I have troubles with passing the distributor argument to the query.
It looks like despite all my effort, queries uses a "default" distributor (Newark?).
For example:
=disty_url("Digi-Key", "BAS40BRW-7-F")
Result:
will redirect to Newark page for the BAS40BRW-7-F part.
Another example:
=disty_url("Mouser", "CRCW12100000Z0EA")
Result:
also redirect to Newark.
And same for distributor price and stock queries.
In the disty_url function, I have tried changing:
query_params = [
{ 'seller' : distributor,
'mpn_or_sku' : mpn_or_sku }
]
To:
query_params = [
{ 'seller' : 'Digi-Key',
'mpn_or_sku' : mpn_or_sku }
]
but it did not help.
Could you please help solving this distributor mismatch?
Thank you!
Francois