Skip to content

Instantly share code, notes, and snippets.

View ManuVenugopal's full-sized avatar

Manu Venugopal ManuVenugopal

View GitHub Profile
@ManuVenugopal
ManuVenugopal / fileUploadResponse.json
Created August 25, 2015 23:50
fileUploadResponse
{
"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",
@ManuVenugopal
ManuVenugopal / Information.js
Last active August 25, 2015 23:27
Common Flow of Information
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: “”,
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 += "&timestamp=" + HttpUtility.UrlEncode(timestamp);
callArgs += "&sig=" + HttpUtility.UrlEncode(GenerateAPISignature(timestamp));
callArgs += "&sterm=" + HttpUtility.UrlEncode(searchTerm);
{ "project_list":
[
{
"folder_tree":null,
"project_roster":null,
@ManuVenugopal
ManuVenugopal / issue_filters.json
Created August 7, 2015 01:47
Sample JSON response for the BIM360 issue_filters API endpoint.
[
{
"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"
},
/// <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);