open-index/open-npm huggingface dataset:
npm package: @goshop/vsf-api
Description: <div align="center"> <img src="https://blog.vuestorefront.io/wp-content/uploads/2020/01/1QU9F6hQlFyHsJIbsdmt6FA.png" height="80px"/>   </div>
Latest version: 0.0.1

<div align="center">
<img src="https://blog.vuestorefront.io/wp-content/uploads/2020/01/1QU9F6hQlFyHsJIbsdmt6FA.png" height="80px"/>  
</div>

## Vue Storefront 2 integration with goshop

------

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<!-- ALL-CONTRIBUTORS-BADGE:END -->

## How to start if you want to try out the integration

```
yarn global add @vue-storefront/cli
```
```
vsf init <project_name> && cd <project_name> && yarn && yarn dev
```

## Resources

- [Vue Storefront Documentation](https://docs.vuestorefront.io/v2/)
- [goshop integration Documentation](https://docs.vuestorefront.io/goshop)
- [Community Chat](https://discord.vuestorefront.io)

## Support

If you have any questions about this integration we will be happy to answer them on `goshop` channel on [our Discord](discord.vuestorefront.io).

## Contributors ✨

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
npm package: @goshops/gs-sdk
Description: A JS SDK for Go Shops Personal | Personalization engine
Latest version: 1.0.25


# Introduction

`@goshops/gs-sdk` is a JavaScript SDK that enables seamless integration with the GoShops platform.

# Installation

You can install `@goshops/gs-sdk` package via npm:

```bash
npm install --save @goshops/gs-sdk
```

Alternatively, you can include it in your project using a script tag with the CDN link:

```html
<script src="https://unpkg.com/@goshops/gs-sdk@latest"></script>
```

To specify a version change latest with the version number from https://www.npmjs.com/package/@goshops/gs-sdk?activeTab=versions

# Usage

## With npm:

You can import @goshops/gs-sdk in your JavaScript file:

```javascript
import GSSDK from '@goshops/gs-sdk';

const gsSDK = new GSSDK('your-client-id');
```

## With CDN:

If you included the SDK using the script tag, you can access the GSSDK constructor directly:

```javascript
const gsSDK = new window.GSSDK('your-client-id');
```

In both cases, you can then use the GS SDK to call various methods:

```javascript
gsSDK.login('userId')
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });
```

Or using async/await:


```javascript
try {
  const response = await gsSDK.login('userId');
  console.log(response);
} catch (error) {
  console.error(error);
}
```

Note: Replace 'your-client-id' with your actual client ID.

# Methods

*@goshops/gs-sdk* exposes the following methods:

* login(userId)
* logout()
* addInteraction(interaction)
* getContent(contentId)

Refer to the official API documentation for detailed information about these methods.
npm package: @goshops/gs-sdk-vue
Description: @goshops/gs-sdk-vue is a Vue.js wrapper for the @goshops/gs-sdk JavaScript SDK. It allows you to easily integrate the GS SDK into your Vue.js applications.
Latest version: 1.0.2

# Introduction

@goshops/gs-sdk-vue is a Vue.js wrapper for the @goshops/gs-sdk JavaScript SDK. It allows you to easily integrate the GS SDK into your Vue.js applications.

# Installation
You can install the @goshops/gs-sdk-vue and the @goshops/gs-sdk packages via npm:

```
npm install --save @goshops/gs-sdk @goshops/gs-sdk-vue
```

# Usage

To use @goshops/gs-sdk-vue in your Vue.js app, you need to install it as a Vue.js plugin:

```
import Vue from 'vue';
import GSSDKVue from '@goshops/gs-sdk-vue';

Vue.use(GSSDKVue, { clientId: 'your-client-id' });
```

Then, in your Vue.js components, you can access the GS SDK via this.$gsSDK:

```
export default {
  created() {
    this.$gsSDK.login('userId')
      .then(response => {
        console.log(response);
      })
      .catch(error => {
        console.error(error);
      });
  }
}
```

If you want to use async/await syntax:

export default {
  async created() {
    try {
      const response = await this.$gsSDK.login('userId');
      console.log(response);
    } catch (error) {
      console.error(error);
    }
  }
}

Note: Replace 'your-client-id' with your actual client ID.

# Methods

@goshops/gs-sdk-vue adds an instance of the GS SDK to Vue's prototype, and you can access the following methods on this.$gsSDK:

* login(userId)
* logout()
* addInteraction(interaction)
* getContent(contentId)

Please refer to the @goshops/gs-sdk documentation for detailed information about these methods.