This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"caption":null, | |
"composite_image_names":"Test5_ee04303e_a6f0_4372_977f_0205fce9dba3_composite.jpg", | |
"content_type":"application/pdf", | |
"created_at":"2015-08-12 01:08:31 -0500", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Common flow of information | |
Let us take a look at how to authenticate against the BIM 360 platform and a common flow of information. | |
1. Authenticate using /api/login | |
GET /api/login?username=<insertusername>&password=<insertpassword> | |
Response: | |
{ | |
message: “”, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void ShowProjectList(ListView aListView, string searchTerm, int page, int page_size) | |
{ | |
string timestamp = GetUNIXEpochTimestamp().ToString(); | |
string callArgs = ""; | |
callArgs += "&company_id=" + HttpUtility.UrlEncode(txt_company_id.Text); | |
callArgs += "&api_key=" + HttpUtility.UrlEncode(txt_api_key.Text); | |
callArgs += "&auth_token=" + HttpUtility.UrlEncode(txt_auth_token.Text); | |
callArgs += "×tamp=" + HttpUtility.UrlEncode(timestamp); | |
callArgs += "&sig=" + HttpUtility.UrlEncode(GenerateAPISignature(timestamp)); | |
callArgs += "&sterm=" + HttpUtility.UrlEncode(searchTerm); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "project_list": | |
[ | |
{ | |
"folder_tree":null, | |
"project_roster":null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"issue_filter_id": "016130ea-c0c5-47e9-a6e1-d3495041f7e4", | |
"name": "All Issues", | |
"updated_at": "2014-10-20 09:15:48 -0400" }, | |
{ | |
"issue_filter_id": "e429e60b-9d69-4fb9-aaf7-fb21872eeee2", | |
"name": "All Unresolved Issues", | |
"updated_at": "2014-10-20 09:15:48 -0400" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Handles the Click event of the cmdGetIssueFilters control. | |
/// </summary> | |
/// <param name="sender">The source of the event.</param> | |
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> | |
private void cmdGetIssueFilters_Click(object sender, EventArgs e) | |
{ | |
if (String.IsNullOrEmpty(txt_auth_token.Text)) | |
{ | |
MessageBox.Show("You must login and get an auth_token for this service call", "BIM 360 API Input Required", MessageBoxButtons.OK, MessageBoxIcon.Information); |