chore(docs): Updated API Reference (automated) (#12461)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5c36bafc1d
commit
c6c660c4d3
@@ -0,0 +1,14 @@
|
||||
import Medusa from "@medusajs/js-sdk"
|
||||
|
||||
export const sdk = new Medusa({
|
||||
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
|
||||
debug: import.meta.env.DEV,
|
||||
auth: {
|
||||
type: "session",
|
||||
},
|
||||
})
|
||||
|
||||
sdk.admin.taxProvider.list()
|
||||
.then(({ tax_providers, count, limit, offset }) => {
|
||||
console.log(tax_providers)
|
||||
})
|
||||
@@ -0,0 +1,2 @@
|
||||
curl '{backend_url}/admin/tax-providers' \
|
||||
-H 'Authorization: Bearer {access_token}'
|
||||
Reference in New Issue
Block a user