All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
userProfileGetMyProfile | GET /api/manage/v1/UserProfile | Return current profile of the current user |
userProfileGetUserProfile | GET /api/manage/v1/UserProfile/{userId} | Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id) |
userProfileUpdateMyProfile | PUT /api/manage/v1/UserProfile | Update profile of the current user |
UserProfileVM userProfileGetMyProfile()
Return current profile of the current user
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.UserProfileApi();
apiInstance.userProfileGetMyProfile().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
UserProfileVM userProfileGetUserProfile(userId)
Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id)
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.UserProfileApi();
let userId = "userId_example"; // String |
apiInstance.userProfileGetUserProfile(userId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
userId | String |
- Content-Type: Not defined
- Accept: application/json
userProfileUpdateMyProfile(opts)
Update profile of the current user
This method is only allowed for local sign in via intranet
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.UserProfileApi();
let opts = {
'updateUserProfileVM': new FastreportCloudSdk.UpdateUserProfileVM() // UpdateUserProfileVM |
};
apiInstance.userProfileUpdateMyProfile(opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
updateUserProfileVM | UpdateUserProfileVM | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json