npm package: @plasma-platform/service-authors
Description: Authors Service API
Author: Template Monsters
Latest version: 0.0.4

![version](https://badgen.net/npm/v/@plasma-platform/service-apv)
![nextVersion](https://badgen.net/npm/v/@plasma-platform/service-apv/next)
![downloads](https://badgen.net/npm/dt/@plasma-platform/service-apv)
![license](https://badgen.net/npm/license/@plasma-platform/service-apv)
![dependency](https://badgen.net/npm/dependents/@plasma-platform/service-apv)  

* * *

[Full documentation](https://templatemonster.gitlab.io/PlasmaPlatform/Frontend/plasma-platform/?path=/story/plasma-platform-sdk--service-apv)  
install:  
`npm i @plasma-platform/service-apv -S`  

# Short documentation

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [AuthorsService](#authorsservice)
    -   [messages](#messages)
    -   [searchStores](#searchstores)
        -   [Examples](#examples)
    -   [updateStore](#updatestore)
        -   [Examples](#examples-1)
    -   [getAuthorProfile](#getauthorprofile)
        -   [Examples](#examples-2)
    -   [createAuthorProfile](#createauthorprofile)
        -   [Examples](#examples-3)
    -   [modifyAuthorProfile](#modifyauthorprofile)
        -   [Examples](#examples-4)
    -   [getPercentSettings](#getpercentsettings)
        -   [Examples](#examples-5)
    -   [linkAuthorsCover](#linkauthorscover)
        -   [Examples](#examples-6)
    -   [linkAuthorsSocialAccount](#linkauthorssocialaccount)
        -   [Examples](#examples-7)
    -   [getListBadges](#getlistbadges)
        -   [Examples](#examples-8)

## AuthorsService

-   **See: <http://service-authors.templatemonsterdev.com/doc/>**

### messages

object with class service messages

Type: [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)

### searchStores

Stores - Search stores

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.searchStores();
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### updateStore

Stores - Update store

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.updateStore();
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### getAuthorProfile

Author - Request authorized author information

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.getAuthorProfile();
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### createAuthorProfile

Author - Create new author

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.createAuthorProfile({});
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### modifyAuthorProfile

Author - Modify author own information

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.modifyAuthorProfile({});
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### getPercentSettings

Author - Get list of percent settings

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.getPercentSettings();
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### linkAuthorsCover

Author - Link cover image url to author

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.linkAuthorsCover({});
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### linkAuthorsSocialAccount

Author - Link social account profile

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.linkAuthorsSocialAccount({});
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>** 

### getListBadges

Badges - Get list of badges

#### Examples

```javascript
(async () => {
  const service = new AuthorsService(url);
  const request = await service.getListBadges({});
})();
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;any>**