This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
node-dogapi
mirror of
https://github.com/brettlangdon/node-dogapi.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
40
Wiki
Activity
Browse Source
Add two examples file with the original and new api
📑
pull/61/head
AdrieanKhisbe
7 years ago
parent
9c26fa9671
commit
07613ae064
2 changed files
with
20 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
examples/new-interface.js
+10
-0
examples/original-interface.js
+ 10
- 0
examples/new-interface.js
View File
@ -0,0 +1,10 @@
var
Dogapi
=
require
(
"../lib"
)
;
var
options
=
{
api_key
:
"YOUR_KEY_HERE"
,
app_key
:
"YOUR_KEY_HERE"
,
}
;
const
dogapi
=
new
Dogapi
(
options
)
;
dogapi
.
metric
.
send
(
'test'
,
1
)
+ 10
- 0
examples/original-interface.js
View File
@ -0,0 +1,10 @@
var
dogapi
=
require
(
"../lib"
)
;
var
options
=
{
api_key
:
"YOUR_KEY_HERE"
,
app_key
:
"YOUR_KEY_HERE"
,
}
;
dogapi
.
initialize
(
options
)
;
dogapi
.
metric
.
send
(
'test'
,
1
)
Write
Preview
Loading…
Cancel
Save