Discussion Forum: Thread 291282 |
|
|
| | Author: | MontagueBrick | Posted: | Jun 12, 2021 19:09 | Subject: | Bricklink API | Viewed: | 159 times | Topic: | Problem | |
|
| Does anyone know how to connect to the Bricklink API? I have tried and tried
again all day and now I just keep getting CORS errors.
|
|
| | | | | |
| | | | Author: | macebobo | Posted: | Jun 12, 2021 20:58 | Subject: | Re: Bricklink API | Viewed: | 45 times | Topic: | Problem | |
|
| In Problem, Joy.Brix writes:
| Does anyone know how to connect to the Bricklink API? I have tried and tried
again all day and now I just keep getting CORS errors.
|
What language are you using?
|
|
| | | | | | | | | |
| | | | | | Author: | MontagueBrick | Posted: | Jun 13, 2021 00:17 | Subject: | Re: Bricklink API | Viewed: | 49 times | Topic: | Problem | |
|
| In Problem, macebobo writes:
| In Problem, Joy.Brix writes:
| Does anyone know how to connect to the Bricklink API? I have tried and tried
again all day and now I just keep getting CORS errors.
|
What language are you using?
|
I'm using React. I think I figured out how to do it with JavaScript/React.
I think the reason I was getting CORS errors was bc I was using HTTP and not
HTTPS. I need to know how to consume the API with PHP though and I'm not
having much luck finding out how. I'm new to OAuth too btw.
|
|
| | | | | | | | | | | | | |
| | | | | | | | Author: | macebobo | Posted: | Jun 13, 2021 00:26 | Subject: | Re: Bricklink API | Viewed: | 43 times | Topic: | Problem | |
|
| In Problem, Joy.Brix writes:
| In Problem, macebobo writes:
| In Problem, Joy.Brix writes:
| Does anyone know how to connect to the Bricklink API? I have tried and tried
again all day and now I just keep getting CORS errors.
|
What language are you using?
|
I'm using React. I think I figured out how to do it with JavaScript/React.
I think the reason I was getting CORS errors was bc I was using HTTP and not
HTTPS. I need to know how to consume the API with PHP though and I'm not
having much luck finding out how. I'm new to OAuth too btw.
|
Oauth has an official php library: https://oauth.net/code/php/
There used to be an example in a couple languages how to consume the api, but
I can't seem to locate them now since the documentation moved. Basically,
it returns JSON, so a good php JSON library will help with consumption. Just
have to get the Oauth right first. Also, be sure you are using TLS 1.2, since
1.0 and 1.1 have been deprecated by bricklink.
|
|
|
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | Author: | Vosblokjes | Posted: | Jun 13, 2021 01:43 | Subject: | Re: Bricklink API | Viewed: | 52 times | Topic: | Problem | |
|
| In Problem, macebobo writes:
| In Problem, Joy.Brix writes:
| In Problem, macebobo writes:
| In Problem, Joy.Brix writes:
| Does anyone know how to connect to the Bricklink API? I have tried and tried
again all day and now I just keep getting CORS errors.
|
What language are you using?
|
I'm using React. I think I figured out how to do it with JavaScript/React.
I think the reason I was getting CORS errors was bc I was using HTTP and not
HTTPS. I need to know how to consume the API with PHP though and I'm not
having much luck finding out how. I'm new to OAuth too btw.
|
Oauth has an official php library: https://oauth.net/code/php/
There used to be an example in a couple languages how to consume the api, but
I can't seem to locate them now since the documentation moved. Basically,
it returns JSON, so a good php JSON library will help with consumption. Just
have to get the Oauth right first. Also, be sure you are using TLS 1.2, since
1.0 and 1.1 have been deprecated by bricklink.
|
Take a look at https://github.com/blockpartybricks/Bricklink-API-Helper
For me it wasn't working out of the box, but stille helped very much
|
|
|
| | | | | |
| | | | Author: | beaverbrick | Posted: | Jun 13, 2021 04:10 | Subject: | Re: Bricklink API | Viewed: | 51 times | Topic: | Problem | |
|
| This site is a handy step-by-step guide to forming the OAuth...
http://lti.tools/oauth/
In Problem, Joy.Brix writes:
| Does anyone know how to connect to the Bricklink API? I have tried and tried
again all day and now I just keep getting CORS errors.
|
|
|
|
|
|
|