DroneDeploy
Search…
Introduction
Introduction
Overview
API
Introduction
Authentication
Pagination
Examples
App Platform
Introduction
App SDK
UI Kit
Javascript API
Annotations
CadOverlay
Exporter
FlightLogs
Images
Link
Messaging
Overlay
Payments
Plans
Popup
Projects
Tiles
Track
User
Map
Measurement
How to publish an App
App Examples
Platform Policy
Authentication
FAQs
Powered By
GitBook
Projects
What is a Project?
A project is a collection of multiple flight plans and maps of the same site. A project may contain flight data collected during multiple flights from various points in time.
Contents
​
Projects.getCurrentlyViewed
​
​
Projects.team
​
Projects.getCurrentlyViewed
Overview
Returns the project that is the currently visible to the user. This method returns project id and name.
Example Call
1
// Get the current one time
2
dronedeployApi
.
Projects
.
getCurrentlyViewed
()
3
.
then
(
function
(
project
){
4
console
.
log
(
project
);
5
});
6
​
7
// Will be called each time the project changes
8
dronedeployApi
.
Projects
.
getCurrentlyViewed
()
9
.
subscribe
(
function
(
project
){
10
console
.
log
(
project
);
11
});
Copied!
Example Response
1
{
2
"id"
:
"12ab34cd56ef78gh90ij12kl"
3
}
Copied!
​
Full Example
​
Projects.team
Overview
Returns members who have access to current project. This method can be used only inside project's pages, otherwise it throws error.
Example Call
1
// Get members for current project one time
2
dronedeployApi
.
Projects
.
team
()
3
.
then
(
function
(
members
){
4
console
.
log
(
members
);
5
});
6
​
7
// Will be called each time the project changes
8
dronedeployApi
.
Projects
.
team
()
9
.
subscribe
(
function
(
members
){
10
console
.
log
(
members
);
11
});
Copied!
Example Response
1
[
2
{
3
"permission"
:
"editor"
,
4
"username"
:
"
[email protected]
"
5
},
6
{
7
"permission"
:
"editor"
,
8
"username"
:
"
[email protected]
"
9
}
10
]
Copied!
​
Full Example
​
Previous
Popup
Next
Tiles
Last modified
1yr ago
Copy link
Contents
Projects.getCurrentlyViewed
Projects.team