# SdPublicProdApi.AssetEndpointsApi

All URIs are relative to *https://core-api.stardust.gg/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**assetGetAllGet**](AssetEndpointsApi.md#assetGetAllGet) | **GET** /asset/get-all | Get All Assets
[**assetGetGet**](AssetEndpointsApi.md#assetGetGet) | **GET** /asset/get | Get Asset

<a name="assetGetAllGet"></a>
# **assetGetAllGet**
> SDAssetGetAllResponses assetGetAllGet(opts)

Get All Assets

See all your files, get the contents of an individual file using asset/get

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.AssetEndpointsApi();
let opts = { 
  'subFolder': "subFolder_example" // String | Top level folder one of ['templates', 'players'], followed by EXISTING fileName i.e. templates/image.jpeg
};
apiInstance.assetGetAllGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subFolder** | **String**| Top level folder one of [&#x27;templates&#x27;, &#x27;players&#x27;], followed by EXISTING fileName i.e. templates/image.jpeg | [optional] 

### Return type

[**SDAssetGetAllResponses**](SDAssetGetAllResponses.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="assetGetGet"></a>
# **assetGetGet**
> SDAssetGetResponse assetGetGet(path)

Get Asset

With this endpoint you can access the content of files that you have uploaded through the Stardust Dashboard

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.AssetEndpointsApi();
let path = "path_example"; // String | Top level folder one of ['templates', 'players'], followed by fileName (ex. templates/image.png)

apiInstance.assetGetGet(path, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **path** | **String**| Top level folder one of [&#x27;templates&#x27;, &#x27;players&#x27;], followed by fileName (ex. templates/image.png) | 

### Return type

[**SDAssetGetResponse**](SDAssetGetResponse.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

