# extendify/0.9.2/src/Library/api/General.js

Extendify, version 0.9.2. 19 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.9.2/code/src/Library/api/General.js
- Raw: https://pluginprobe.com/plugins/extendify/0.9.2/raw/src/Library/api/General.js
- Modified: 2022-05-27T00:51:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/0.9.2/code/src/Library/api/General.js#L10-L20`.

```javascript
import { useTemplatesStore } from '@library/state/Templates'
import { useUserStore } from '@library/state/User'
import { Axios as api } from './axios'

export const General = {
    metaData() {
        return api.get('meta-data')
    },
    ping(action) {
        const categories =
            useTemplatesStore.getState()?.searchParams?.taxonomies ?? []
        return api.post('simple-ping', {
            action,
            categories,
            sdk_partner: useUserStore.getState()?.sdkPartner ?? '',
        })
    },
}

```
