Discussion Forum: All Replies to Message 1462739 |
|
|
| | Author: | GrayCityBricks | Posted: | Apr 2, 2024 19:43 | Subject: | API example | Viewed: | 110 times | Topic: | Help | |
|
| Hello, I am interested in managing my inventory via api. Could you please provide
an example of a GET function, preferably in Python? Thank you very much.
|
|
| | | | | |
| | | | Author: | ErwinNL | Posted: | Apr 3, 2024 02:33 | Subject: | Re: API example | Viewed: | 47 times | Topic: | Help | |
|
| In Inventories, GrayCityBricks writes:
| Hello, I am interested in managing my inventory via api. Could you please provide
an example of a GET function, preferably in Python? Thank you very much.
|
You can find an example code here, and I think there is also a GitHub repo.
https://www.bricklink.com/v3/api.page?page=auth
Getting inventory is just retrieving JSON data from this URL after authentication.
https://api.bricklink.com/api/store/v1/inventories/392783099
That is the easy part, authentication is the tricky one.
I haven't used Python in years, so I cannot give you a complete example of
that language.
|
|
| | | | | | | | | |
| | | | | | Author: | ErwinNL | Posted: | Apr 3, 2024 02:48 | Subject: | Re: API example | Viewed: | 66 times | Topic: | Help | |
|
| In Inventories, ErwinNL writes:
| In Inventories, GrayCityBricks writes:
| Hello, I am interested in managing my inventory via api. Could you please provide
an example of a GET function, preferably in Python? Thank you very much.
|
You can find an example code here, and I think there is also a GitHub repo.
https://www.bricklink.com/v3/api.page?page=auth
Getting inventory is just retrieving JSON data from this URL after authentication.
https://api.bricklink.com/api/store/v1/inventories/392783099
That is the easy part, authentication is the tricky one.
I haven't used Python in years, so I cannot give you a complete example of
that language.
|
https://github.com/BrickBytes/bricklink_api
|
|
| | | | | | | | | | | | | |
| | | | | | | | Author: | GrayCityBricks | Posted: | Apr 3, 2024 08:47 | Subject: | Re: API example | Viewed: | 60 times | Topic: | Help | |
|
| Thank you very much. I'm going to try that. |
|
|
|
|
|