Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit ae5c60e

Browse files
authored
add readme file
1 parent 631d8bf commit ae5c60e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Instabug web SDK
2+
3+
Instabug web sdk is a javascript library to add ability to report bugs from your website and report it to Instabug dashboard.
4+
5+
### Install Instabug
6+
to include instabug web sdk to your website just copy the below lines into the end of your page `<body>` tag
7+
```html
8+
<script src='https://s3.amazonaws.com/instabug-pro/sdk_releases/instabugsdk-1.1.1.min.js'></script>
9+
<script>
10+
ibgSdk.init({
11+
token: <INSTABUG_APP_TOKEN>
12+
});
13+
</script>
14+
```
15+
16+
### API Documentation
17+
18+
#### `.init(options)`
19+
the init function is used to used to inintialize the sdk for the first time, it accepts the options object as parameter,
20+
the `options` object in now accept only the `token`.
21+
22+
#### `.disable()`
23+
used to hide the report bug button
24+
25+
#### `.enable()`
26+
used to show the report bug button

0 commit comments

Comments
 (0)