logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
dBir06  
#1 Posted : Saturday, March 18, 2017 3:23:44 PM(UTC)
dBir06


Rank: Guest

Joined: 3/18/2017(UTC)
Posts: 2
United States

Can someone guide me in the right direction on what kind of function (methods) I need to write to update an access session's customproperty using http post/get (curl)?

Much appreciated
dBir06  
#2 Posted : Sunday, March 19, 2017 2:07:25 AM(UTC)
dBir06


Rank: Guest

Joined: 3/18/2017(UTC)
Posts: 2
United States

Figured it out.


public string UpdateSessionProperty2(string integrationKey, string name, string property2)
{
var session = SessionManagerPool.Demux.GetSessions().FirstOrDefault(s => s.Name == name);
//return session.SafeNav(s => s.SessionID);
if(integrationKey != "replacewithintegrationkey")
return "Integration Key Failed";

UpdateSession(integrationKey,session.Host, session.SessionID, session.Name, session.IsPublic, session.Code, new string[] {session.CustomPropertyValues[0],property2,session.CustomPropertyValues[2],session.CustomPropertyValues[3],session.CustomPropertyValues[4],session.CustomPropertyValues[5],session.CustomPropertyValues[6],session.CustomPropertyValues[7] });

return "Success";
}


public void UpdateSession(string integrationKey, string byHost, Guid sessionID, string name, bool isPublic, string code, string[] customPropertyValues)
{
// Ensure it's the thing you're integrating with that's calling the method
// This can be done in a number of ways depending on the integrating system (or just personal preference)
if(integrationKey != "replacewithintegrationkey")
return;

SessionManagerPool.Demux.UpdateSession(byHost, sessionID, name, isPublic, code, customPropertyValues);
}
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.