1.0.3 • Published 2 years 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-searchYarn
yarn add gogo-ai-site-searchUsage
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
GOGOAISearchPluginfunction injects the necessary elements into your application to enable GOGO GET AI Site Search. - It creates a
divelement with theidof"root"and sets adata-api-keyattribute 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.