{
    "componentChunkName": "component---src-templates-article-page-template-js",
    "path": "/concepts/js-sdk/",
    "result": {"data":{"markdownRemark":{"frontmatter":{"title":"JavaScript SDKs","slug":"js-sdk","updated":"2021-10-05T00:00:00.000Z","category":"concepts-api-sdk","ingress":"Information on our SDKs and where to find our SDK documentation","skills":null},"htmlAst":{"type":"root","children":[{"type":"element","tagName":"h2","properties":{"id":"documentation","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#documentation","ariaLabel":"documentation permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Documentation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Find our SDK documentation here:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://sharetribe.github.io/flex-sdk-js/","target":"_blank","rel":["noopener","noreferrer"]},"children":[{"type":"text","value":"Sharetribe Flex SDK for JavaScript Documentation"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://sharetribe.github.io/flex-integration-sdk-js/","target":"_blank","rel":["noopener","noreferrer"]},"children":[{"type":"text","value":"Sharetribe Flex Integration SDK for JavaScript Documentation"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"features","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#features","ariaLabel":"features permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Features"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The SDKs are the easiest way to interact with Sharetribe Flex\nMarketplace API and the Sharetribe Flex Integration API."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"They handle authentication, renewing authentication tokens and\nserializing and deserializing data to and from JavaScript data\nstructures. Using the SDKs allows you to focus on building your\nmarketplace front-end instead of implementing boilerplate to communicate\nwith the API."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The main SDK features are:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Promise-based asynchronous API."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Universal: Runs in any JavaScript environment, including Node.js,\nbrowser and React Native (experimental)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Predictable mapping from SDK methods to API endpoints."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Types to represent UUID, money, geolocation, etc. with automatic\nserialization and deserialization."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Easy authentication."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"flex-sdk-for-javascript","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#flex-sdk-for-javascript","ariaLabel":"flex sdk for javascript permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Flex SDK for JavaScript"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The Marketplace API is meant to handle all the interactions the end\nusers of your marketplace take part in e.g. signing up, managing\nlistings and transactions. You should be using the Marketplace API when\nbuilding your marketplace UI, such as a web client or a mobile app."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The Marketplace API only provides data that an individual user should\nhave access to; this means that the API doesn’t allow access to other\nusers’ private data, transactions or messages. The SDK provides a\nconvenient way to access the Marketplace API endpoints without needing\nto configure custom API calls."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can access all the JS SDK documentation at:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://sharetribe.github.io/flex-sdk-js/","target":"_blank","rel":["noopener","noreferrer"]},"children":[{"type":"text","value":"https://sharetribe.github.io/flex-sdk-js/"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"flex-integration-sdk-for-javascript","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#flex-integration-sdk-for-javascript","ariaLabel":"flex integration sdk for javascript permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Flex Integration SDK for JavaScript"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In contrast to the Marketplace API, the Integration API reveals the\nentire marketplace data. The Integration API is meant for trusted secure\napplications to access. You might be running such an application in your\nown backend systems or as a 3rd party integration. The Integration API\nis well suited for integrations with your own or 3rd party systems,\ncustom reporting and custom tooling for operators managing the\nmarketplace."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can access all the JS SDK documentation at:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://sharetribe.github.io/flex-integration-sdk-js/","target":"_blank","rel":["noopener","noreferrer"]},"children":[{"type":"text","value":"https://sharetribe.github.io/flex-integration-sdk-js/"}]}]}],"data":{"quirksMode":false}},"headings":[{"value":"Documentation","depth":2},{"value":"Features","depth":2},{"value":"Flex SDK for JavaScript","depth":2},{"value":"Flex Integration SDK for JavaScript","depth":2}]}},"pageContext":{"slug":"js-sdk","category":"concepts-api-sdk"}},
    "staticQueryHashes": ["3794076007","439097193","717698143"]}