FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vrchatapi-javascript/example.js at main · Hartman-SupraCoder/vrchatapi-javascript · GitHub
Hartman-SupraCoder
/
vrchatapi-javascript
Public
forked from
vrchatapi/vrchatapi-javascript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vrchatapi-javascript
/
example.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (21 loc) · 983 Bytes
Breadcrumbs
vrchatapi-javascript
/
example.js
Copy path
File metadata and controls
30 lines (21 loc) · 983 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const
querystring
=
require
(
"querystring"
)
;
const
{
Curl
}
=
require
(
"node-libcurl"
)
;
const
terminate
=
curlTest
.
close
.
bind
(
curlTest
)
;
const
vrchat
=
require
(
"vrchat"
)
;
const
configuration
=
new
vrchat
.
Configuration
(
{
username
:
"PossiumxMini"
,
password
:
"ujswdfcvrploamnsdeft"
}
)
;
const
AuthenticationApi
=
new
vrchat
.
AuthenticationApi
(
configuration
)
;
const
UsersApi
=
new
vrchat
.
UsersApi
(
configuration
)
;
const
SystemApi
=
new
vrchat
.
SystemApi
(
configuration
)
;
SystemApi
.
getCurrentOnlineUsers
(
)
.
then
(
resp
=>
{
console
.
log
(
`Current Online Users:
${
resp
.
data
}
`
)
;
// Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
AuthenticationApi
.
getCurrentUser
(
)
.
then
(
resp
=>
{
console
.
log
(
`Logged in as:
${
resp
.
data
.
displayName
}
`
)
;
UsersApi
.
getUser
(
"usr_5099020d-1ca7-4743-b312-5d6f28fc877a"
)
.
then
(
resp
=>
{
console
.
log
(
resp
.
data
.
displayName
)
;
// Should print out "tupper"
}
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL