public FilesList()
        {
            InitializeComponent();
             //todo: add the load of my files
             listView1.Clear();

             IBM.Connections.Net.Api.ConnectionsApiService connectionsAPIService = new IBM.Connections.Net.Api.ConnectionsApiService("https://dubxpcvm1192.mul.ie.ibm.com:9444", "ajones1", "jones1");
             //load files
             IBM.Connections.Net.Api.Models.Request.Files request = new IBM.Connections.Net.Api.Models.Request.Files();
             request.page = 1;
             request.pageSize = 500;

             FilesResult response = connectionsAPIService.FilesService.GetMyFiles(request);
             url = response.collection.Href;
             if (response != null)
             {
            // Create columns for the items and subitems.
            listView1.Columns.Add("Filename", 400, HorizontalAlignment.Left);
            foreach (var file in response.FilesEntry)
            {
               ListViewItem item = new ListViewItem(file.Label, 0);
               item.Tag = file;
               listView1.Items.Add(item);
            }
             }
        }
 public OfficeSideBar()
 {
    InitializeComponent();
    connectionsAPIService = new IBM.Connections.Net.Api.ConnectionsApiService("https://dubxpcvm1192.mul.ie.ibm.com:9444", "ajones1", "jones1");
    this.listViewCommunities.SelectedIndexChanged += new System.EventHandler(this.ReturnDocumentLink);
    this.listViewMyFiles.SelectedIndexChanged += new System.EventHandler(this.ReturnDocumentLink);
    this.listViewSharedWithMe.SelectedIndexChanged += new System.EventHandler(this.ReturnDocumentLink);
    StartAsyncMyFiles();
 }
        static void Main(string[] args)
        {
            var server = "https://dubxpcvm1192.mul.ie.ibm.com:9444";
             var username = "******";
             var password = "******";
             //hack for my dev environment
             System.Net.ServicePointManager.ServerCertificateValidationCallback = (senderX, certificate, chain, sslPolicyErrors) => { return true; };
             //end hack for my dev env
             var client = new IBM.Connections.Net.Api.ConnectionsApiService(server,username,password);

             var result = client.ProfilesService.GetMyProfile();
             Console.WriteLine(result.items.Email);
             Console.ReadLine();
        }