1.0.3 • Published 9 months ago
gogo-ai-site-search v1.0.3
GOGO GET AI Site Search Plugin
A plugin for Angular and Vue that integrates GOGO GET AI Site Search into your application.
Table of Contents
Installation
Install the plugin via npm or Yarn:
npm
npm install gogo-ai-site-search
Yarn
yarn add gogo-ai-site-search
Usage
Angular
Import and use the plugin in your component or main module:
import { Component, OnInit } from '@angular/core';
import GOGOAISearchPlugin from 'gogo-ai-site-search';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent implements OnInit {
ngOnInit() {
GOGOAISearchPlugin('your-api-key');
}
}
Vue
Import and use the plugin in your Vue component:
<template>
<div id="app">
<!-- Your app content -->
</div>
</template>
<script>
import GOGOAISearchPlugin from 'gogo-ai-site-search';
export default {
name: 'App',
mounted() {
GOGOAISearchPlugin('your-api-key');
},
};
</script>
API
GOGOAISearchPlugin(apiKey)
Initializes the GOGO GET AI Site Search plugin.
Parameters
apiKey
(string, required)
: Your GOGO GET AI Site Search API key.
Description
- The
GOGOAISearchPlugin
function injects the necessary elements into your application to enable GOGO GET AI Site Search. - It creates a
div
element with theid
of"root"
and sets adata-api-key
attribute with your provided API key. - It appends a script tag to load the GOGO GET AI Site Search script from
https://gogoget.ai/main.dd687848.js
.
Example
// For both Angular and Vue
import GOGOAISearchPlugin from 'gogo-ai-site-search';
// Initialize the plugin with your API key
GOGOAISearchPlugin('your-api-key');
Note: Replace 'your-api-key'
with the actual API key provided to you by GOGO AI Site Search.
To get an API key, please visit https://gogoget.ai/, sign up, subscribe, scan your site, build a search plugin, and then retrieve the plugin key.
License
MIT License © APSKC
Support
For any questions or issues, please contact support@gogokc.com.