+
+
+
+
+
+
+ getProjectById
+Get project details
++
/api/v1/project/{projectId}
+ +
Usage and SDK Samples
+ + + +
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/project/{projectId}"
+
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.WebApi;
+
+import java.io.File;
+import java.util.*;
+
+public class WebApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ WebApi apiInstance = new WebApi();
+ String projectId = projectId_example; // String |
+
+ try {
+ common.ProjectInfo result = apiInstance.getProjectById(projectId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling WebApi#getProjectById");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String projectId = new String(); // String |
+
+try {
+ final result = await api_instance.getProjectById(projectId);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getProjectById: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.WebApi;
+
+public class WebApiExample {
+ public static void main(String[] args) {
+ WebApi apiInstance = new WebApi();
+ String projectId = projectId_example; // String |
+
+ try {
+ common.ProjectInfo result = apiInstance.getProjectById(projectId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling WebApi#getProjectById");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+WebApi *apiInstance = [[WebApi alloc] init];
+String *projectId = projectId_example; // (default to null)
+
+// Get project details
+[apiInstance getProjectByIdWith:projectId
+ completionHandler: ^(common.ProjectInfo output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.WebApi()
+var projectId = projectId_example; // {String}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getProjectById(projectId, callback);
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getProjectByIdExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new WebApi();
+ var projectId = projectId_example; // String | (default to null)
+
+ try {
+ // Get project details
+ common.ProjectInfo result = apiInstance.getProjectById(projectId);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling WebApi.getProjectById: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\WebApi();
+$projectId = projectId_example; // String |
+
+try {
+ $result = $api_instance->getProjectById($projectId);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling WebApi->getProjectById: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::WebApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::WebApi->new();
+my $projectId = projectId_example; # String |
+
+eval {
+ my $result = $api_instance->getProjectById(projectId => $projectId);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling WebApi->getProjectById: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.WebApi()
+projectId = projectId_example # String | (default to null)
+
+try:
+ # Get project details
+ api_response = api_instance.get_project_by_id(projectId)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling WebApi->getProjectById: %s\n" % e)
+
+
+ extern crate WebApi;
+
+pub fn main() {
+ let projectId = projectId_example; // String
+
+ let mut context = WebApi::Context::default();
+ let result = client.getProjectById(projectId, &context).wait();
+
+ println!("{:?}", result);
+}
+
+ Scopes
+Parameters
+ +Path parameters
+ Name | +Description | +
---|---|
projectId* | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+ |
+
Responses
+ + + + + + + + +
+
+
+
+
+
+
+
+