from lib.client import IndivoClient token = 'HpbR4kdu0X41gyKMMCu1' token_secret = 'LKExpgK5ZqvFhqW83rWa' pha_client = IndivoClient('test_client', '057afcd440f7', {'host' : 'x-staging.indivo.org', 'port' : '8000'}) pha_client.update_token(oauth_token={'oauth_token' : token, 'oauth_token_secret' : token_secret}) record_id='c2dd7ab2-4929-4f16-a571-a0a0a53de219' document_id='3bd74520-bdd9-4c6a-8974-88bef33e89bb' chrome_client = IndivoClient('chrome', 'chrome') chrome_client.create_session({'account_id' : '*****@*****.**', 'username' : 'stevezabak', 'user_pass' : 'abc'}) chrome_client.read_record(record_id=record_id) chrome_client.get_document_relate(document_id=document_id, record_id=record_id, rel_type='Annotation', debug=True)
from lib.client import IndivoClient client = IndivoClient("chrome", "chrome") client.create_session({"user_email": "*****@*****.**", "user_pass": "******"}) client.read_record(record_id="b4a05559-31f1-4764-9c3d-324d06704c9c") client.read_documents()
from lib.client import IndivoClient INDIVO_SERVER = {'host': '192.168.1.101', 'port': '8000'} record_id = '52df6370-3810-4d20-a456-034c4d71454c' admin_client = IndivoClient('chrome_key', 'chrome_secret', INDIVO_SERVER) # Missioncontrol sends message to Indivo for i in range(100): msg_id, msg_subject, msg_body = 'test', 'hello world ' + str( i), 'testing ' + str(i) admin_client.message_record(record_id=record_id, message_id=msg_id, data={ 'subject': msg_subject, 'body': msg_body }) admin_client.record_notify(record_id=record_id, data={'content': 'testing ' + str(i)}) # # Missioncontrol gives access to [email protected] # token = admin_client.setup_app( record_id = record_id, # app_id = '*****@*****.**').response['prd'] # user_client = IndivoClient('*****@*****.**','problems', INDIVO_SERVER) # user_client.update_token(token) # # # Problems app gets the messages # user_client.get_messages(record_id = record_id)
from lib.client import IndivoClient token = 'HpbR4kdu0X41gyKMMCu1' token_secret = 'LKExpgK5ZqvFhqW83rWa' pha_client = IndivoClient('test_client', '057afcd440f7', { 'host': 'x-staging.indivo.org', 'port': '8000' }) pha_client.update_token(oauth_token={ 'oauth_token': token, 'oauth_token_secret': token_secret }) record_id = 'c2dd7ab2-4929-4f16-a571-a0a0a53de219' document_id = '3bd74520-bdd9-4c6a-8974-88bef33e89bb' chrome_client = IndivoClient('chrome', 'chrome') chrome_client.create_session({ 'account_id': '*****@*****.**', 'username': '******', 'user_pass': '******' }) chrome_client.read_record(record_id=record_id) chrome_client.get_document_relate(document_id=document_id, record_id=record_id, rel_type='Annotation', debug=True)
from lib.client import IndivoClient INDIVO_SERVER = {'host':'192.168.1.101','port':'8000'} record_id = '52df6370-3810-4d20-a456-034c4d71454c' admin_client = IndivoClient('chrome_key','chrome_secret', INDIVO_SERVER) # Missioncontrol sends message to Indivo for i in range(100): msg_id, msg_subject, msg_body = 'test', 'hello world '+str(i) , 'testing '+str(i) admin_client.message_record(record_id = record_id, message_id = msg_id, data={'subject' : msg_subject, 'body' : msg_body}) admin_client.record_notify(record_id = record_id, data={'content':'testing '+str(i)}) # # Missioncontrol gives access to [email protected] # token = admin_client.setup_app( record_id = record_id, # app_id = '*****@*****.**').response['prd'] # user_client = IndivoClient('*****@*****.**','problems', INDIVO_SERVER) # user_client.update_token(token) # # # Problems app gets the messages # user_client.get_messages(record_id = record_id)
from lib.client import IndivoClient client = IndivoClient('chrome', 'chrome') client.create_session({ 'user_email' : '*****@*****.**', 'user_pass' : 'abc'}) client.read_record(record_id='b4a05559-31f1-4764-9c3d-324d06704c9c') client.read_documents()