Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin commercelayer starter finished #2799

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gustavocodess
Copy link
Contributor

Plugin for CommerceLayer basics integration with SKUs

To use it install
@builder.io/plugin-commercelayer
on your space, connect with your credentials and use the defined types within your editor.

@gustavocodess gustavocodess requested a review from a team as a code owner October 31, 2023 02:41
@gustavocodess gustavocodess requested review from mrkoreye and removed request for a team October 31, 2023 02:41
@vercel
Copy link

vercel bot commented Oct 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
nextjs-sdk-example ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2023 6:54pm
qwik-city-sdk-example ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2023 6:54pm
svelte-vite-example ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2023 6:54pm

plugins/plugin-commerce-layer/CONTRIBUTING.md Outdated Show resolved Hide resolved
plugins/plugin-commerce-layer/.travis.yml Outdated Show resolved Hide resolved
plugins/plugin-commerce-layer/package.json Outdated Show resolved Hide resolved
plugins/plugin-commerce-layer/src/plugin.ts Outdated Show resolved Hide resolved
'@type': '@builder.io/core:Request',
request: {
url: baseUrl(`skus/${id}`),
headers,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this work? above we're passing authorization header in addition to this one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works bc on the frontend the token also exists

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm but depending on the situation, we might make those api calls in our backends ... try:

            headers: { ...headers, Authorization: 'Bearer ' + token },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants