Developers please use (stage version of Bimplus API) and (stage version of Shop/Portal) for testing purposes. The production version of the portal is located under and the base url of the API is different for the production version. |
BimPlusCube.zip --> It explains how to create project data (nodes, geometry etc)
BimPlusDemo.zip --> It explains how to create project data (nodes, geometry etc)It explains how to authenticate, get your teams, get your project, how to create a project, how to get the project_id of your created project, create a model under the same project and upload an ifc file.
BimplusRestClient.php (PHP REST client)
// Example 1: Hello function (no accessToken needed) // --------------------------------------------------------------------- $url = 'https://api-stage.bimplus.net/v2/hello'; $verb = 'GET'; // Create object $request = new BimplusRestClient( $url, $verb ); // Execute $request->execute(); $response = $request->getResponse(); echo '<pre>'; print_r(json_decode($response)); echo '</pre>'; // Example 2: Get user data // --------------------------------------------------------------------- $userId = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'; // Bimplus userID $url = 'https://api-stage.bimplus.net/v2/users/' . $userId; $verb = 'GET'; $accessToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'; // accessToken // Create object $request = new BimplusRestClient( $url, $verb, $accessToken ); // Execute $request->execute(); $response = $request->getResponse(); echo '<pre>'; print_r(json_decode($response)); echo '</pre>'; // Example 3: Update user data // --------------------------------------------------------------------- $userId = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'; // Bimplus userID $url = 'https://api-stage.bimplus.net/v2/users/' . $userId; $verb = 'PUT'; $accessToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'; // accessToken $requestBody = array( 'email' => 'new.email@allplan.com' ); // Create object $request = new BimplusRestClient( $url, $verb, $accessToken, $requestBody ); // Execute $request->execute(); $response = $request->getResponse(); echo '<pre>'; print_r(json_decode($response)); echo '</pre>'; |
jQuery(document).ready(function() { jQuery("#datagrid").jqGrid({ datatype : 'json', type : "GET", ajaxGridOptions : { contentType : "application/json" }, loadBeforeSend : function(xhr) { xhr.setRequestHeader('Authorization', 'BimPlus 199c55110e2044b88e21a0c1cbb02fe3') }, url : 'http://api-dev.bimplus.net/v2/teams', colNames : ['ID', 'Name', 'Slug', 'Status'], colModel : [{ name : 'id', width : 200, align : "center", sortable : true }, { name : 'name', width : 200, align : "center", sortable : true }, { name : 'slug', width : 200, align : "center", sortable : true }, { name : 'status', width : 200, align : "center", sortable : true }], jsonReader : { repeatitems : false, root : function(obj) { return obj; }, page : function(obj) { return 1; }, total : function(obj) { return 1; }, records : function(obj) { return obj.length; } }, rowNum : 10, rowList : [10, 20, 30], pager : '#pager10', viewrecords : true, caption : "Bimplus Team Details", }).navGrid('#navGrid'); }) window.setTimeout(refreshGrid, 5000); function refreshGrid() { var grid = jQuery("#datagrid"); grid.trigger("reloadGrid"); window.setTimeout(refreshGrid, 5000); } |
Authentication
Find out how many teams I am part of
Get team project list
Get project details
Get project topology
Get project disciplines
Upload project thumbnail
Create an issue in the project
Get the issue list from the project
Delete all the issues from the project
Create a new pin for the issue
Get all the pins of the issue
Create/Upload a new attachment for the issue
Get the attachment list from the issue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|