I need some help so that i can send/connect with any user having its id - google+ users.
Looking at the example below, i am confused what values will come in while starting the conversation-
Client = require 'hangupsjs'
Q = require 'q'
# callback to get promise for creds using stdin. this in turn
# means the user must fire up their browser and get the
# requested token.
//****** WHAT IS THIS .DO I NEED TO PROVIDE USE EMAIL/PASSWORD
creds = -> auth:Client.authStdin
client = new Client()
# set more verbose logging
client.loglevel 'debug'
# receive chat message events
client.on 'chat_message', (ev) ->
console.log ev
# connect and post a message.
# the id is a conversation id.
client.connect(creds).then ->
//**** DONT UNDERSTAND WHAT TO SEND AS A PARAMETER TO SAY Hello World.Is it the google+ user id or email/password of the person to whom to send.Kindly clarify
client.sendchatmessage('UgzJilj2Tg_oqkAaABAQ', [
[0, 'Hello World']
])
.done()
my server log....dont know whats going on..i know browser is trying to open and then what ... ?
2017-11-30 13:17:13 DEBUG emit connecting
2017-11-30 13:17:13 DEBUG getting auth...
2017-11-30 13:17:13 DEBUG proceeding to login
2017-11-30 13:17:13 DEBUG request auth code from user
To log in, open the following link in a browser and paste the provided authorization code below:
https://accounts.google.com/o/oauth2/auth?&client_id=936475272427.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthLogin&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code
Authorization Token: 2017-11-30 13:17:13 DEBUG requesting refresh token
2017-11-30 13:17:14 DEBUG attempt to get session cookies undefined
2017-11-30 13:17:14 DEBUG requesting uberauth
2017-11-30 13:17:14 ERROR getAuth failed { [Error: Forbidden] code: 403, message: 'Forbidden', body: 'Error=badauth\n' }
2017-11-30 13:17:14 DEBUG emit connect_failed { [Error: Forbidden] code: 403, message: 'Forbidden', body: 'Error=badauth\n' }
I need some help so that i can send/connect with any user having its id - google+ users.
Looking at the example below, i am confused what values will come in while starting the conversation-
my server log....dont know whats going on..i know browser is trying to open and then what ... ?