سیستم احراز هویت منم

addclient

add client


/v1/auth/clients/add

Usage and SDK Samples

curl -X POST "//v1/auth/clients/add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addclient");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addclient");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add client
[apiInstance addclientWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addclientExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // add client
                apiInstance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addclient: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->addclient($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addclient: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->addclient(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->addclient: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # add client
    api_instance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->addclient: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator

Status: 500 - internal server error


addtenantadmin/operator

Add tenant admin/operator

گاهی از مواقع برای مدیریت راحت تر یک قلمرو احتیاج است که چند کاربر دیگر را به عنوان مسئول قسمتی از یک قلمرو در نظرگرفت که هرکدام می‌توانند درجه های دسترسی متفاوتی داشته باشند. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/auth/tenants/admin/add' \ --header 'Content-Type: application/json' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NzcyNzksInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoiam9obmRvZSJ9.VUVi2zmHDeyIIu7tIr3pgPiIa8C5qHutcV6lw-NN5Duy_7OZir_3v0MUc9xhV46uYYO6G2b1KOnjFrnh_NoO-oz1gP2k-oi3EkIojZPNd-iy4Vv6yXaYG-kJR7gAB3rb2wyHHh9rLh2NRy26uMWjPmLM6ZOKvPQfJsgGmIeZNWggRanhjQeUlU5qd0mgwyTkhFrMnBj-oQBHzAyH4WPwbP7cp76z5ZNglu6OzqCMeWMr73pUHHTK1wUPtNvG7-MPuvsCixWmbQgJYIE3CClVbrCiFFLLbArTOTdK1ZWZlqXACimufJ6hLKa8oBe5FkvQYS6MdvTwjQDj7elmN_5GlQ' \ --data-raw '{ "username":"testuser", "admin": "true" }' ```` در این درخواست یک کاربر از قلمرو alireza با نام کاربری testuser، به عنوان مدیر و با دسترسی کامل (admin) اضافه شد (ایجاد کاربر در ادامه بررسی خواهد شد). در این درخواست ما دو پارامتر username و admin را همراه درخواست ارسال می کنیم. username نام کاربریِ کاربری است که می خواهیم نقش مدیریتی به او بدهیم و admin هم که یک فیلد منطقی است، نشان دهنده این است که آیا می خواهیم دسترسی کامل به این کاربر بدهیم (مقدار true) یا به عنوان اپراتور او را درنظر بگیریم (مقدار false). ```` "message": {         "username": "testuser",         "email": "javad.hosseini.imani@gmail.com",         "phone": "09112126695",         "role": 3,         "email_verify": 1,         "phone_verify": 1,         "tenant_id": 155,         "is_active": 1     } ````


/v1/auth/tenants/admin/add

Usage and SDK Samples

curl -X POST "//v1/auth/tenants/admin/add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.addtenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addtenantadmin/operator");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.addtenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addtenantadmin/operator");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Add tenant admin/operator
[apiInstance addtenantadmin/operatorWith:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addtenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addtenantadmin/operatorExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Add tenant admin/operator
                apiInstance.addtenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addtenantadmin/operator: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->addtenantadmin/operator($apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addtenantadmin/operator: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->addtenantadmin/operator(apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->addtenantadmin/operator: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Add tenant admin/operator
    api_instance.addtenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->addtenantadmin/operator: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 400 - missing required field

Status: 404 - your tenant has been deactivated, please contact your administrator/ user is not activated, please active the user first/ you don't have access to this item


confirmuserforgetphone

Confirm user forget phone

برای تغییر رمز عبور کد فراموشی ارسال شده به تلفن همراه تان در مرحله قبل را باید در درخواست زیر به همراه نام کاربری کاربر ارسال کنید. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/confirm/phone/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXX' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "username":"testuser", "code":"475455" }' ```` همانطور که دیده می‌شود، رمز عبور جدید در پاسخ برگردانده شده است: ```` "message": {     "username": "testuser",     "new_password": "x2J[84Vp" } ````


/v1/any/users/confirm/phone

Usage and SDK Samples

curl -X POST "//v1/any/users/confirm/phone"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ConfirmuserforgetphoneRequest body = {
  "username" : "alireza",
  "code" : 236377
}; // ConfirmuserforgetphoneRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.confirmuserforgetphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#confirmuserforgetphone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ConfirmuserforgetphoneRequest body = {
  "username" : "alireza",
  "code" : 236377
}; // ConfirmuserforgetphoneRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.confirmuserforgetphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#confirmuserforgetphone");
            e.printStackTrace();
        }
    }
}
ConfirmuserforgetphoneRequest *body = {
  "username" : "alireza",
  "code" : 236377
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Confirm user forget phone
[apiInstance confirmuserforgetphoneWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "code" : 236377
}; // {{ConfirmuserforgetphoneRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.confirmuserforgetphone(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class confirmuserforgetphoneExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new ConfirmuserforgetphoneRequest(); // ConfirmuserforgetphoneRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Confirm user forget phone
                apiInstance.confirmuserforgetphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.confirmuserforgetphone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "code" : 236377
}; // ConfirmuserforgetphoneRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->confirmuserforgetphone($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->confirmuserforgetphone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::ConfirmuserforgetphoneRequest->new(); # ConfirmuserforgetphoneRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->confirmuserforgetphone(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->confirmuserforgetphone: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "code" : 236377
} # ConfirmuserforgetphoneRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Confirm user forget phone
    api_instance.confirmuserforgetphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->confirmuserforgetphone: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username

Status: 403 - invalid username or code

Status: 404 - record not found/ user is not activated, please active the user first

Status: 500 - internal server error


confrirmuserforgetemail

Confrirm user forget email

برای تغییر رمز عبور کد فراموشی ارسال شده به ایمیل در مرحله قبل را باید در درخواست زیر به همراه نام کاربری کاربر ارسال کنید. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/confirm/email/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXX' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "username":"testuser", "code":"475455" }' ```` همانطور که دیده می‌شود، رمز عبور جدید در پاسخ برگردانده شده است: ```` "message": {     "username": "testuser",     "new_password": "x2J[84Vp" } ````


/v1/any/users/confirm/email

Usage and SDK Samples

curl -X POST "//v1/any/users/confirm/email"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ConfrirmuserforgetemailRequest body = {
  "username" : "alireza",
  "code" : 876581
}; // ConfrirmuserforgetemailRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.confrirmuserforgetemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#confrirmuserforgetemail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ConfrirmuserforgetemailRequest body = {
  "username" : "alireza",
  "code" : 876581
}; // ConfrirmuserforgetemailRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.confrirmuserforgetemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#confrirmuserforgetemail");
            e.printStackTrace();
        }
    }
}
ConfrirmuserforgetemailRequest *body = {
  "username" : "alireza",
  "code" : 876581
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Confrirm user forget email
[apiInstance confrirmuserforgetemailWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "code" : 876581
}; // {{ConfrirmuserforgetemailRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.confrirmuserforgetemail(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class confrirmuserforgetemailExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new ConfrirmuserforgetemailRequest(); // ConfrirmuserforgetemailRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Confrirm user forget email
                apiInstance.confrirmuserforgetemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.confrirmuserforgetemail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "code" : 876581
}; // ConfrirmuserforgetemailRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->confrirmuserforgetemail($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->confrirmuserforgetemail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::ConfrirmuserforgetemailRequest->new(); # ConfrirmuserforgetemailRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->confrirmuserforgetemail(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->confrirmuserforgetemail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "code" : 876581
} # ConfrirmuserforgetemailRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Confrirm user forget email
    api_instance.confrirmuserforgetemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->confrirmuserforgetemail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username

Status: 403 - invalid username or code

Status: 404 - record not found/ user is not activated, please active the user first

Status: 500 - internal server error


deactivetenant

Deactive tenant

در صورتی که شما بخواهید قلمرو خود را برای مدتی غیرفعال نمایید می توانید از طریق درخواست زیر این فرآیند را انجام دهید ```` curl --location --request PUT 'https://api.apieco.ir/manam/api/v1/auth/tenants/deactive/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: johdoe' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NjQ1MzUsInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaGRvZSIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiJqb2hkb2UifQ.3rBERyBzfI5RRF10ONJO-pqMLmnDXJE8BeHPF6Cp6u9ERxMQpPS0ls-3NDW6qeEX7Cxg4q79mYRJwSS9guefxTE7hWmduarHriKh3eMmWrV_xwUqnB7fK2_VMq51Xv33R_e2gT2Sz7czgd3pPcxwz2zg40EfD0BOfrWDrIvkuRLdVHQm6_Sj6Bz9VbWds7VjzYbqkqy_SmrGMKw84oSsl3nITc-Hsmz6h7T26SMQUwT668c7B7CM1Vg6J7kmB0YZLBDfp2QOlnuOEYyEVElBQpaGHRMpSUCLfIRfEH5aK6GVeugfvP18NlQh3C6wKFc-kq-Rd7PhTloMHhIp6OoXzA' \ ```` در صورت موفقیت‌آمیز بودن درخواست، پاسخ به این صورت است: ```` "message": {       "manam_response": "alireza, tenant deactivated"     } ````


/v1/auth/tenants/deactive

Usage and SDK Samples

curl -X PUT "//v1/auth/tenants/deactive"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deactivetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deactivetenant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deactivetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deactivetenant");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Deactive tenant
[apiInstance deactivetenantWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deactivetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deactivetenantExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Deactive tenant
                apiInstance.deactivetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deactivetenant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->deactivetenant($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deactivetenant: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->deactivetenant(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->deactivetenant: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Deactive tenant
    api_instance.deactivetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->deactivetenant: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found/ tenant is already deactivated


deactivetenantadmin/operator

Deactive tenant admin/operator

در صورتی که بخواهید یک مدیر یا اپراتور را غیرفعال کنید باید به صورت زیر عمل کنید ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/auth/tenants/admin/deactive' \ --header 'Content-Type: application/json' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NzcyNzksInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoiam9obmRvZSJ9.VUVi2zmHDeyIIu7tIr3pgPiIa8C5qHutcV6lw-NN5Duy_7OZir_3v0MUc9xhV46uYYO6G2b1KOnjFrnh_NoO-oz1gP2k-oi3EkIojZPNd-iy4Vv6yXaYG-kJR7gAB3rb2wyHHh9rLh2NRy26uMWjPmLM6ZOKvPQfJsgGmIeZNWggRanhjQeUlU5qd0mgwyTkhFrMnBj-oQBHzAyH4WPwbP7cp76z5ZNglu6OzqCMeWMr73pUHHTK1wUPtNvG7-MPuvsCixWmbQgJYIE3CClVbrCiFFLLbArTOTdK1ZWZlqXACimufJ6hLKa8oBe5FkvQYS6MdvTwjQDj7elmN_5GlQ' \ --data-raw '{ "username": "testuser" }' ```` همانطور که در این درخواست می بینید، کاربر testuser که در مرحله قبل مدیر قلمرو شده بود در این درخواست از نقش مدیریتی حذف گردید. ```` "message": {    "manam_response": "alireza, tenant operator deactivated"    } ````


/v1/auth/tenants/admin/deactive

Usage and SDK Samples

curl -X POST "//v1/auth/tenants/admin/deactive"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deactivetenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deactivetenantadmin/operator");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deactivetenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deactivetenantadmin/operator");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Deactive tenant admin/operator
[apiInstance deactivetenantadmin/operatorWith:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deactivetenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deactivetenantadmin/operatorExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Deactive tenant admin/operator
                apiInstance.deactivetenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deactivetenantadmin/operator: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->deactivetenantadmin/operator($apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deactivetenantadmin/operator: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->deactivetenantadmin/operator(apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->deactivetenantadmin/operator: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Deactive tenant admin/operator
    api_instance.deactivetenantadmin/operator(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->deactivetenantadmin/operator: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 400 - missing required field/ does not validate as username

Status: 404 - your tenant has been deactivated, please contact your administrator/ user is not activated, please active the user first/ tenant operator is already deactivated


deleteclient

delete client


/v1/auth/clients/delete

Usage and SDK Samples

curl -X DELETE "//v1/auth/clients/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deleteclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteclient");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deleteclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteclient");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete client
[apiInstance deleteclientWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteclientExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // delete client
                apiInstance.deleteclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteclient: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->deleteclient($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteclient: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->deleteclient(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteclient: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # delete client
    api_instance.deleteclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteclient: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - not found

Status: 500 - internal server error


deletetenant

Delete tenant

در صورتی که می خواهید به صورت دائمی یک قلمرو را حذف کنید از درخواست زیر استفاده کنید: ```` curl --location --request DELETE 'https://api.apieco.ir/manam/api/v1/auth/tenants/delete/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NjQ1MzUsInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaGRvZSIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiJqb2hkb2UifQ.3rBERyBzfI5RRF10ONJO-pqMLmnDXJE8BeHPF6Cp6u9ERxMQpPS0ls-3NDW6qeEX7Cxg4q79mYRJwSS9guefxTE7hWmduarHriKh3eMmWrV_xwUqnB7fK2_VMq51Xv33R_e2gT2Sz7czgd3pPcxwz2zg40EfD0BOfrWDrIvkuRLdVHQm6_Sj6Bz9VbWds7VjzYbqkqy_SmrGMKw84oSsl3nITc-Hsmz6h7T26SMQUwT668c7B7CM1Vg6J7kmB0YZLBDfp2QOlnuOEYyEVElBQpaGHRMpSUCLfIRfEH5aK6GVeugfvP18NlQh3C6wKFc-kq-Rd7PhTloMHhIp6OoXzA' ```` نتیجه این درخواست: ```` "message": { "manam_response": "alireza, tenant deleted"    } ````


/v1/auth/tenants/delete

Usage and SDK Samples

curl -X DELETE "//v1/auth/tenants/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deletetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deletetenant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deletetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deletetenant");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Delete tenant
[apiInstance deletetenantWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletetenantExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Delete tenant
                apiInstance.deletetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deletetenant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->deletetenant($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deletetenant: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->deletetenant(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->deletetenant: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Delete tenant
    api_instance.deletetenant(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->deletetenant: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator


deleteuser

delete user

در صورتی که می خواهید به صورت دائمی یک کاربر را حذف کنید از درخواست زیر استفاده کنید: ```` curl --location --request DELETE 'https://api.apieco.ir/manam/api/v1/auth/users/delete?username=testuser' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXX' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' ```` در این درخواست نام کاربر به صورت کوئری در آدرس آمده است.


/v1/auth/users/delete

Usage and SDK Samples

curl -X DELETE "//v1/auth/users/delete?username="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String username = username_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deleteuser(apiecoKey, username, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteuser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String username = username_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.deleteuser(apiecoKey, username, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteuser");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *username = username_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete user
[apiInstance deleteuserWith:apiecoKey
    username:username
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var username = username_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteuser(apiecoKey, username, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteuserExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var username = username_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // delete user
                apiInstance.deleteuser(apiecoKey, username, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteuser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$username = username_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->deleteuser($apiecoKey, $username, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteuser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $username = username_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->deleteuser(apiecoKey => $apiecoKey, username => $username, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteuser: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
username = username_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # delete user
    api_instance.deleteuser(apiecoKey, username, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteuser: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required
Query parameters
Name Description
username*
String
Required

Responses

Status: 200 -

Status: 404 - invalid tenant username/ record not found


forgetpasswordwithemail

Forget password with email

در صورتی که رمز ورود کاربری خود را فراموش کرده اید، با این درخواست ابتدا کدی 6 رقمی به ایمیل شما ارسال می شود: ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/email/forget' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "Username":"testuser" }' ```` پاسخ: ```` "message": {        "manam_response": "testuser, check user's email for verification code"    } ````


/v1/any/users/email/forget

Usage and SDK Samples

curl -X POST "//v1/any/users/email/forget"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ForgetpasswordwithemailRequest body = {
  "username" : "alireza"
}; // ForgetpasswordwithemailRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.forgetpasswordwithemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#forgetpasswordwithemail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ForgetpasswordwithemailRequest body = {
  "username" : "alireza"
}; // ForgetpasswordwithemailRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.forgetpasswordwithemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#forgetpasswordwithemail");
            e.printStackTrace();
        }
    }
}
ForgetpasswordwithemailRequest *body = {
  "username" : "alireza"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Forget password with email
[apiInstance forgetpasswordwithemailWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza"
}; // {{ForgetpasswordwithemailRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.forgetpasswordwithemail(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class forgetpasswordwithemailExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new ForgetpasswordwithemailRequest(); // ForgetpasswordwithemailRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Forget password with email
                apiInstance.forgetpasswordwithemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.forgetpasswordwithemail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza"
}; // ForgetpasswordwithemailRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->forgetpasswordwithemail($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->forgetpasswordwithemail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::ForgetpasswordwithemailRequest->new(); # ForgetpasswordwithemailRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->forgetpasswordwithemail(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->forgetpasswordwithemail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza"
} # ForgetpasswordwithemailRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Forget password with email
    api_instance.forgetpasswordwithemail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->forgetpasswordwithemail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username

Status: 403 - email is not vierified

Status: 404 - record not found

Status: 500 - internal server error


forgetpasswordwithphone

Forget password with phone

در صورتی که بخواهید کد فراموشی را از طریق تلفن همراه خود دریافت کنید، باید از این درخواست استفاده کنید: ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/phone/forget' \ --header 'Content-Type: application/json' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "Username":"testuser" }' ```` پاسخ: ```` "message": {       "manam_response": "testuser, check user's phone for verification code"     } ````


/v1/any/users/phone/forget

Usage and SDK Samples

curl -X POST "//v1/any/users/phone/forget"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ForgetpasswordwithphoneRequest body = {
  "username" : "alireza"
}; // ForgetpasswordwithphoneRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.forgetpasswordwithphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#forgetpasswordwithphone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ForgetpasswordwithphoneRequest body = {
  "username" : "alireza"
}; // ForgetpasswordwithphoneRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.forgetpasswordwithphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#forgetpasswordwithphone");
            e.printStackTrace();
        }
    }
}
ForgetpasswordwithphoneRequest *body = {
  "username" : "alireza"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Forget password with phone
[apiInstance forgetpasswordwithphoneWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza"
}; // {{ForgetpasswordwithphoneRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.forgetpasswordwithphone(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class forgetpasswordwithphoneExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new ForgetpasswordwithphoneRequest(); // ForgetpasswordwithphoneRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Forget password with phone
                apiInstance.forgetpasswordwithphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.forgetpasswordwithphone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza"
}; // ForgetpasswordwithphoneRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->forgetpasswordwithphone($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->forgetpasswordwithphone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::ForgetpasswordwithphoneRequest->new(); # ForgetpasswordwithphoneRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->forgetpasswordwithphone(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->forgetpasswordwithphone: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza"
} # ForgetpasswordwithphoneRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Forget password with phone
    api_instance.forgetpasswordwithphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->forgetpasswordwithphone: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username

Status: 403 - email is not vierified

Status: 404 - record not found

Status: 500 - internal server error


getclient

get client


/v1/auth/clients/detail

Usage and SDK Samples

curl -X GET "//v1/auth/clients/detail"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.getclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getclient");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.getclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getclient");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get client
[apiInstance getclientWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getclientExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // get client
                apiInstance.getclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getclient: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->getclient($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getclient: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->getclient(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->getclient: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # get client
    api_instance.getclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->getclient: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 500 - internal server error


gettenantadmins

Get tenant admins

در صورتی که برای یک قلمرو مدیر تعریف کرده باشید، از طریق درخواست زیر می توانید اطلاعات آن ها را مشاهده کنید: ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/admins/detail/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NzcyNzksInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoiam9obmRvZSJ9.VUVi2zmHDeyIIu7tIr3pgPiIa8C5qHutcV6lw-NN5Duy_7OZir_3v0MUc9xhV46uYYO6G2b1KOnjFrnh_NoO-oz1gP2k-oi3EkIojZPNd-iy4Vv6yXaYG-kJR7gAB3rb2wyHHh9rLh2NRy26uMWjPmLM6ZOKvPQfJsgGmIeZNWggRanhjQeUlU5qd0mgwyTkhFrMnBj-oQBHzAyH4WPwbP7cp76z5ZNglu6OzqCMeWMr73pUHHTK1wUPtNvG7-MPuvsCixWmbQgJYIE3CClVbrCiFFLLbArTOTdK1ZWZlqXACimufJ6hLKa8oBe5FkvQYS6MdvTwjQDj7elmN_5GlQ' ```` نتیجه این درخواست به این صورت است: ```` "message": [         {             "username": "testuser",             "email": "newEmail@gmail.com",             "phone": "09112126695",             "full_name": "testname",             "role": 3,             "email_verify": 0,             "phone_verify": 1         }     ] ````


/v1/auth/tenants/admins/detail

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/admins/detail"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantadmins(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantadmins");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantadmins(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantadmins");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get tenant admins
[apiInstance gettenantadminsWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantadmins(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantadminsExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Get tenant admins
                apiInstance.gettenantadmins(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.gettenantadmins: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantadmins($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->gettenantadmins: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantadmins(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->gettenantadmins: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Get tenant admins
    api_instance.gettenantadmins(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->gettenantadmins: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator


gettenantclients

Get tenant clients


/v1/auth/tenants/clients/detail

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/clients/detail"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantclients(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantclients");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantclients(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantclients");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get tenant clients
[apiInstance gettenantclientsWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantclients(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantclientsExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Get tenant clients
                apiInstance.gettenantclients(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.gettenantclients: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantclients($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->gettenantclients: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantclients(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->gettenantclients: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Get tenant clients
    api_instance.gettenantclients(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->gettenantclients: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator


gettenantdetail

Get tenant detail

بعد از ورود به سیستم و دریافت توکن دسترسی، می‌توان در صورت نیاز اطلاعات مربوط به قلمرو ثبت شده را مشاهده کرد ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/detail/' \ --header 'Content-Type: application/json' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NjQ1MzUsInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaGRvZSIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiJqb2hkb2UifQ.3rBERyBzfI5RRF10ONJO-pqMLmnDXJE8BeHPF6Cp6u9ERxMQpPS0ls-3NDW6qeEX7Cxg4q79mYRJwSS9guefxTE7hWmduarHriKh3eMmWrV_xwUqnB7fK2_VMq51Xv33R_e2gT2Sz7czgd3pPcxwz2zg40EfD0BOfrWDrIvkuRLdVHQm6_Sj6Bz9VbWds7VjzYbqkqy_SmrGMKw84oSsl3nITc-Hsmz6h7T26SMQUwT668c7B7CM1Vg6J7kmB0YZLBDfp2QOlnuOEYyEVElBQpaGHRMpSUCLfIRfEH5aK6GVeugfvP18NlQh3C6wKFc-kq-Rd7PhTloMHhIp6OoXzA' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'tenant_username: alireza' ```` در این درخواست سرآیند manam_auth مقدار توکنی که در مرحله ورود به سیستم به دست آمده را در خود نگه می دارد. همچنین مقدار سرآیند tenant_username، نام کاربری قلمرو ثبت شده است. پاسخ این درخواست به این صورت است: ```` "message": {         "username": "alireza",         "name": "",         "email": "alireza@gmail.com",         "timeout": "1440",         "confirm_email": "true",         "confirm_phone": "true",         "phone_is_username": "false",         "email_is_username": "false",         "is_active": 1      } ````


/v1/auth/tenants/detail

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/detail"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantdetail(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantdetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantdetail(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantdetail");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get tenant detail
[apiInstance gettenantdetailWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantdetail(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantdetailExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Get tenant detail
                apiInstance.gettenantdetail(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.gettenantdetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantdetail($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->gettenantdetail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantdetail(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->gettenantdetail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Get tenant detail
    api_instance.gettenantdetail(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->gettenantdetail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found


gettenantlogininfos

Get tenant login infos


/v1/auth/tenants/login-infos

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/login-infos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantlogininfos");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantlogininfos");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get tenant login infos
[apiInstance gettenantlogininfosWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantlogininfosExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Get tenant login infos
                apiInstance.gettenantlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.gettenantlogininfos: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantlogininfos($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->gettenantlogininfos: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantlogininfos(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->gettenantlogininfos: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Get tenant login infos
    api_instance.gettenantlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->gettenantlogininfos: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 400 - does not validate as username/ your tenant has been deactivated, please contact your administrator

Status: 404 - record not found


gettenantuserlogininfos

Get tenant user login infos


/v1/auth/tenants/user/login-infos

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/user/login-infos?username="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String username = username_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantuserlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, username, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantuserlogininfos");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String username = username_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantuserlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, username, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantuserlogininfos");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *username = username_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get tenant user login infos
[apiInstance gettenantuserlogininfosWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    username:username
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var username = username_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantuserlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, username, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantuserlogininfosExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var username = username_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Get tenant user login infos
                apiInstance.gettenantuserlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, username, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.gettenantuserlogininfos: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$username = username_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantuserlogininfos($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $username, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->gettenantuserlogininfos: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $username = username_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantuserlogininfos(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, username => $username, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->gettenantuserlogininfos: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
username = username_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Get tenant user login infos
    api_instance.gettenantuserlogininfos(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, username, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->gettenantuserlogininfos: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
Query parameters
Name Description
username*
String
Required

Responses

Status: 200 -

Status: 400 - does not validate as username/ your tenant has been deactivated, please contact your administrator/ user is not activated, please active the user first


gettenantusers

Get tenant users

برای مشاهده کاربرانی که در قلمرو ثبت شده اند، از درخواست زیر استفاده کنید ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/users/detail/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NzcyNzksInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoiam9obmRvZSJ9.VUVi2zmHDeyIIu7tIr3pgPiIa8C5qHutcV6lw-NN5Duy_7OZir_3v0MUc9xhV46uYYO6G2b1KOnjFrnh_NoO-oz1gP2k-oi3EkIojZPNd-iy4Vv6yXaYG-kJR7gAB3rb2wyHHh9rLh2NRy26uMWjPmLM6ZOKvPQfJsgGmIeZNWggRanhjQeUlU5qd0mgwyTkhFrMnBj-oQBHzAyH4WPwbP7cp76z5ZNglu6OzqCMeWMr73pUHHTK1wUPtNvG7-MPuvsCixWmbQgJYIE3CClVbrCiFFLLbArTOTdK1ZWZlqXACimufJ6hLKa8oBe5FkvQYS6MdvTwjQDj7elmN_5GlQ' ```` ````  "message": [         {             "username": "jackdoe",             "email": "jackdoe@sample.com",             "phone": "09121234567",             "role": 5,             "email_verify": 0,             "phone_verify": 0         },         {             "username": "testuser",             "email": "newEmail@gmail.com",             "phone": "09112126695",             "full_name": "testname",             "role": 5,             "email_verify": 0,             "phone_verify": 1         }    ] ````


/v1/auth/tenants/users/detail

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/users/detail"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantusers(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantusers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantusers(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#gettenantusers");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get tenant users
[apiInstance gettenantusersWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantusers(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantusersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Get tenant users
                apiInstance.gettenantusers(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.gettenantusers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantusers($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->gettenantusers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantusers(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->gettenantusers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Get tenant users
    api_instance.gettenantusers(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->gettenantusers: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - not found/ your tenant has been deactivated, please contact your administrator


getuser

get user

بعد از ورود به سیستم و دریافت توکن دسترسی، می‌توان در صورت نیاز اطلاعات مربوط به کاربر ثبت شده را مشاهده کرد. ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/users/detail?username=testuser' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' ```` در این درخواست سرآیند manam_auth مقدار توکنی که در مرحله ورود به سیستم به دست آمده را در خود نگه می دارد. همچنین مقدار سرآیند tenant_username، نام کاربری ثبت شده است. پاسخ این درخواست به این صورت است: ```` "message": {         "username": "testuser",         "email": "jaxxxxxxxxxxxxx@gmail.com",         "phone": "09112126695",         "role": 5,         "email_verify": 1,         "phone_verify": 1,         "is_active": 1 } ```` همانطور که مشاهده می‌کنید، ایمیل و تلفن همراه کاربر تایید شده است.


/v1/auth/users/detail

Usage and SDK Samples

curl -X GET "//v1/auth/users/detail?username="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String username = username_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.getuser(apiecoKey, username, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getuser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String username = username_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.getuser(apiecoKey, username, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getuser");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *username = username_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get user
[apiInstance getuserWith:apiecoKey
    username:username
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var username = username_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getuser(apiecoKey, username, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getuserExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var username = username_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // get user
                apiInstance.getuser(apiecoKey, username, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getuser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$username = username_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->getuser($apiecoKey, $username, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getuser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $username = username_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->getuser(apiecoKey => $apiecoKey, username => $username, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->getuser: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
username = username_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # get user
    api_instance.getuser(apiecoKey, username, contentType, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->getuser: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required
Query parameters
Name Description
username*
String
Required

Responses

Status: 200 -

Status: 400 - invalid request received/ user is not activated, please active the user first

Status: 500 - internal server error


loginWithTenantPassword

Login With Tenant Password

در این مرحله با قلمرو ایجاد شده در مرحله قبل، وارد سیستم منم می شویم. درخواست ورود به این صورت است ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/tenants/login' \ --header 'Content-Type: application/json' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --data-raw '{ "username": "alireza", "password": "I1+6kP^082yV" }' ```` در پاسخ به این درخواست، منم اطلاعاتی در مورد توکن‌ها که جهت برقراری ارتباط امن با منم است را برمی گرداند: ```` message": {         "auth_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ4NjQ1MzUsInJvbGUiOjMsInRlbmFudF91c2VybmFtZSI6ImpvaGRvZSIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiJqb2hkb2UifQ.3rBERyBzfI5RRF10ONJO-pqMLmnDXJE8BeHPF6Cp6u9ERxMQpPS0ls-3NDW6qeEX7Cxg4q79mYRJwSS9guefxTE7hWmduarHriKh3eMmWrV_xwUqnB7fK2_VMq51Xv33R_e2gT2Sz7czgd3pPcxwz2zg40EfD0BOfrWDrIvkuRLdVHQm6_Sj6Bz9VbWds7VjzYbqkqy_SmrGMKw84oSsl3nITc-Hsmz6h7T26SMQUwT668c7B7CM1Vg6J7kmB0YZLBDfp2QOlnuOEYyEVElBQpaGHRMpSUCLfIRfEH5aK6GVeugfvP18NlQh3C6wKFc-kq-Rd7PhTloMHhIp6OoXzA",         "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODczNzAxMzUsImp0aSI6IjM1YmM4ODhmLTZiNGItMTFlYS1hMzc5LTAyNDJhYzFmMDAwMyIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.wkd7ByFZvxLuzzSccOh_YGZ10xTLv7NrZxaWiMDk3k9kapxLb_lM3X-lkqPvullmYDH0zYsL5dfyl4a7dCrkyQFZPr8uqY7hszy7QuEZggYOHDL4hBy_iZiT8m73YquDHs6Lehg0uxmgKZmMC3DxGIZWcCESvc6JbBr-LAdYc7EcKUWscrNXOSwErciSmpgon2X8KbM4SJsbdVujgEtKqGN2hONa9oYcnkWuvc_NjkC_4rC_kV6Wy-Xzj3y2OsqFfTHoQmjCMAloJKTeUdB_ASjoIOEzPpdEVZxjERws_q1C162gleHcVWVKnjdlC2ZHSjZNOpieWZeyUJYGScKEUw",         "token_type": "Bearer"     } ```` در پاسخ بالا دو توکن برگشت داده شده است: __auth_token__: توکن دسترسی است و طول عمر کمی دارد و در درخواست‌های ارسال شده در منم باید از این توکن استفاده کرد. __refresh_token__: در صورتی که توکن دسترسی منقضی شود، نیاز خواهید داشت که با استفاده از refresh token درخواست توکن‌های معتبر جدید دهید. این توکن طول عمر بیشتری نسبت به توکن دسترسی دارد. در صورتی که رفرش توکن هم منقضی شود، کاربر باید دوباره وارد منم شود و توکن‌های جدید دریافت کند


/v1/any/tenants/login

Usage and SDK Samples

curl -X POST "//v1/any/tenants/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        LoginWithTenantPasswordRequest body = {
  "username" : "alireza",
  "password" : "!9%|hg[0QoIg"
}; // LoginWithTenantPasswordRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.loginWithTenantPassword(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#loginWithTenantPassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        LoginWithTenantPasswordRequest body = {
  "username" : "alireza",
  "password" : "!9%|hg[0QoIg"
}; // LoginWithTenantPasswordRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.loginWithTenantPassword(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#loginWithTenantPassword");
            e.printStackTrace();
        }
    }
}
LoginWithTenantPasswordRequest *body = {
  "username" : "alireza",
  "password" : "!9%|hg[0QoIg"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Login With Tenant Password
[apiInstance loginWithTenantPasswordWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "password" : "!9%|hg[0QoIg"
}; // {{LoginWithTenantPasswordRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.loginWithTenantPassword(bodyapiecoKeyxConsumerIdxConsumerUsername, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class loginWithTenantPasswordExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new LoginWithTenantPasswordRequest(); // LoginWithTenantPasswordRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 

            try
            {
                // Login With Tenant Password
                apiInstance.loginWithTenantPassword(body, apiecoKey, xConsumerId, xConsumerUsername);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.loginWithTenantPassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "password" : "!9%|hg[0QoIg"
}; // LoginWithTenantPasswordRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 

try {
    $api_instance->loginWithTenantPassword($body, $apiecoKey, $xConsumerId, $xConsumerUsername);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->loginWithTenantPassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::LoginWithTenantPasswordRequest->new(); # LoginWithTenantPasswordRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 

eval { 
    $api_instance->loginWithTenantPassword(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername);
};
if ($@) {
    warn "Exception when calling DefaultApi->loginWithTenantPassword: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "password" : "!9%|hg[0QoIg"
} # LoginWithTenantPasswordRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 

try: 
    # Login With Tenant Password
    api_instance.login_with_tenant_password(body, apiecoKey, xConsumerId, xConsumerUsername)
except ApiException as e:
    print("Exception when calling DefaultApi->loginWithTenantPassword: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - invalid or short password/invalid or short username/invalid user credential has been received

Status: 403 - your tenant has been deactivated, please contact your administrator

Status: 404 - record not found


loginuser

login user

پس از فعال شدن، کاربر با وارد شدن به حساب کاربری، توکن های مورد نیاز برای فعالیت های خود را به دست می آورد ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/login' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --data-raw '{ "username":"testuser", "password":"12345678" }' ```` توجه داشته باشید که در صورتی که قلمرو مربوطه فیلدهای سفارشی برای ثبت نام و ورود به سیستم در نظرگرفته باشد، این درخواست ممکن است متفاوت از این درخواست نمایش داده شده باشد. برای مثال در فیلد username در بدنه درخواست به جای نام کاربری، باید کدملی وارد گردد در صورت موفقیت‌آمیز بودن ورود کاربر، دو توکن دسترسی و refresh در نتیجه ارسال می گردد: ```` "message": { "auth_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw",   "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODc0MDcyODMsImp0aSI6ImIzZDY2NzAwLTZiYTEtMTFlYS1hMzc5LTAyNDJhYzFmMDAwMyIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.MxOMMspfmWYzjL_HXmQuRhGHYEVVDLC3Zs5dHjcy9OfwxZgddJXAwjFlo35vXEt3W2ALD6AVD0cFohKcbuZuIvIt5H-71xyxjGMBCBUe5F9J3tcNaiWGDThKhw_8L0siZ6BZajGibWh6bKiRxZI26Pyg7ecHxXIWZwE7UQ-uyIsWcxqYLAWDzXvlCXla3Surj71PDxbwNLBEyQy8VUioPm9Pp8hWdeC5KRJ_bB1okWx-0VLspSAOUTnTaXfw-Xpx7yUud6vi34Oi6DHczrme3RpZJrrNxQTXZVTRyU84dvKYEYz-u3YJ6FuqgJVRTv_ebExYWuVY6enKZefHwbIE_A",   "token_type": "Bearer" } ````


/v1/any/users/login

Usage and SDK Samples

curl -X POST "//v1/any/users/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Loginuserrequest body = {
  "username" : "alireza",
  "password" : "Z8^XO{$b"
}; // Loginuserrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.loginuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#loginuser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Loginuserrequest body = {
  "username" : "alireza",
  "password" : "Z8^XO{$b"
}; // Loginuserrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.loginuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#loginuser");
            e.printStackTrace();
        }
    }
}
Loginuserrequest *body = {
  "username" : "alireza",
  "password" : "Z8^XO{$b"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// login user
[apiInstance loginuserWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "password" : "Z8^XO{$b"
}; // {{Loginuserrequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.loginuser(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class loginuserExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Loginuserrequest(); // Loginuserrequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // login user
                apiInstance.loginuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.loginuser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "password" : "Z8^XO{$b"
}; // Loginuserrequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->loginuser($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->loginuser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Loginuserrequest->new(); # Loginuserrequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->loginuser(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->loginuser: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "password" : "Z8^XO{$b"
} # Loginuserrequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # login user
    api_instance.loginuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->loginuser: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username/ empty or short password

Status: 401 - invalid user credential has been received

Status: 403 - user is not activated, please active the user first

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator


orgmembers/add

add a member

قلمرو این قابلیت را دارد که بدون هیچ گونه محدودیتی کاربران را به ارگان های تحت اختیارش اضافه کند. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/edit/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "user_id": "1", "role": "2", "state": "1", " expires_at":" 2020-05-21", "custom_fields": founder: John Doe year: 1998 }' ````


/api/v1/auth/tenants/orgs/{orgID}/members/add

Usage and SDK Samples

curl -X POST "//api/v1/auth/tenants/orgs/{orgID}/members/add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        MemberRequest body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // MemberRequest | 
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        try {
            Member result = apiInstance.orgmembers/add(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/add");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        MemberRequest body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // MemberRequest | 
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        try {
            Member result = apiInstance.orgmembers/add(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/add");
            e.printStackTrace();
        }
    }
}
MemberRequest *body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // 
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add a member
[apiInstance orgmembers/addWith:body
    contentType:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
              completionHandler: ^(Member output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // {{MemberRequest}} 
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgmembers/add(bodycontentTypeaccepttenantUsernamemanamAuthapiecoKeysecretorgID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgmembers/addExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new MemberRequest(); // MemberRequest | 
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 

            try
            {
                // add a member
                Member result = apiInstance.orgmembers/add(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgmembers/add: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // MemberRequest | 
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 

try {
    $result = $api_instance->orgmembers/add($body, $contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgmembers/add: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::MemberRequest->new(); # MemberRequest | 
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 

eval { 
    my $result = $api_instance->orgmembers/add(body => $body, contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgmembers/add: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
} # MemberRequest | 
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 

try: 
    # add a member
    api_response = api_instance.orgmembers/add(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgmembers/add: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - organization object

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgmembers/delete

delete a member

یک tenant می‌تواند هرکاربری را از ارگان مدنظر حذف کند. تنها کاربر owner قابل حذف از ارگان نمی باشد. ```` curl --location --request DELETE 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/member/2/delete \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ ````


/api/v1/auth/tenants/orgs/{orgID}/members/{userID}/delete

Usage and SDK Samples

curl -X DELETE "//api/v1/auth/tenants/orgs/{orgID}/members/{userID}/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        try {
            inline_response_200_1 result = apiInstance.orgmembers/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        try {
            inline_response_200_1 result = apiInstance.orgmembers/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/delete");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 
Integer *userID = 56; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete a member
[apiInstance orgmembers/deleteWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
    userID:userID
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 
var userID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgmembers/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgmembers/deleteExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 
            var userID = 56;  // Integer | 

            try
            {
                // delete a member
                inline_response_200_1 result = apiInstance.orgmembers/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgmembers/delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 
$userID = 56; // Integer | 

try {
    $result = $api_instance->orgmembers/delete($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID, $userID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgmembers/delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 
my $userID = 56; # Integer | 

eval { 
    my $result = $api_instance->orgmembers/delete(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID, userID => $userID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgmembers/delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 
userID = 56 # Integer | 

try: 
    # delete a member
    api_response = api_instance.orgmembers/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgmembers/delete: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
userID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required

Responses

Status: 200 - 200 response with a message

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgmembers/details

get member details

درخواست زیر برای دسترسی به اطلاعات مربوط به یک عضو به همراه اطلاعات کاربر جاری، کاربر مورد نظر و اطلاعات ارگان مورد نظر، استفاده می گردد. ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/members/2 \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ ````


/api/v1/auth/tenants/orgs/{orgID}/members/{userID}

Usage and SDK Samples

curl -X GET "//api/v1/auth/tenants/orgs/{orgID}/members/{userID}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        try {
            Member result = apiInstance.orgmembers/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/details");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        try {
            Member result = apiInstance.orgmembers/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/details");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 
Integer *userID = 56; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get member details
[apiInstance orgmembers/detailsWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
    userID:userID
              completionHandler: ^(Member output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 
var userID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgmembers/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgmembers/detailsExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 
            var userID = 56;  // Integer | 

            try
            {
                // get member details
                Member result = apiInstance.orgmembers/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgmembers/details: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 
$userID = 56; // Integer | 

try {
    $result = $api_instance->orgmembers/details($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID, $userID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgmembers/details: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 
my $userID = 56; # Integer | 

eval { 
    my $result = $api_instance->orgmembers/details(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID, userID => $userID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgmembers/details: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 
userID = 56 # Integer | 

try: 
    # get member details
    api_response = api_instance.orgmembers/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgmembers/details: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
userID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required

Responses

Status: 200 - organization object

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgmembers/index

list members of the given organization;

در این بخش قلمرو میتواند تمامی اعضای یک ارگان را به همراه اطلاعات کاربری آن‌ها مشاهده کند. ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/members \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ ````


/api/v1/auth/tenants/orgs/{orgID}/members

Usage and SDK Samples

curl -X GET "//api/v1/auth/tenants/orgs/{orgID}/members?created_at=&custom_fields=&user_id=&role=&state=&sort=&sort_direction="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        dateSearch createdAt = ; // dateSearch | 
        customFeildsSearch customFields = ; // customFeildsSearch | 
        Integer userId = 56; // Integer | filter members using userID
        Integer role = 56; // Integer | filter members using their role
        Integer state = 56; // Integer | filter members using their state
        String sort = sort_example; // String | sort key; available keys are: id, user_id, role, state, expires_at, created_at, username
        String sortDirection = sortDirection_example; // String | avaible values are: asc and desc
        try {
            inline_response_200_2 result = apiInstance.orgmembers/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, createdAt, customFields, userId, role, state, sort, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/index");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        dateSearch createdAt = ; // dateSearch | 
        customFeildsSearch customFields = ; // customFeildsSearch | 
        Integer userId = 56; // Integer | filter members using userID
        Integer role = 56; // Integer | filter members using their role
        Integer state = 56; // Integer | filter members using their state
        String sort = sort_example; // String | sort key; available keys are: id, user_id, role, state, expires_at, created_at, username
        String sortDirection = sortDirection_example; // String | avaible values are: asc and desc
        try {
            inline_response_200_2 result = apiInstance.orgmembers/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, createdAt, customFields, userId, role, state, sort, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/index");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 
Integer *userID = 56; // 
dateSearch *createdAt = ; //  (optional)
customFeildsSearch *customFields = ; //  (optional)
Integer *userId = 56; // filter members using userID (optional)
Integer *role = 56; // filter members using their role (optional)
Integer *state = 56; // filter members using their state (optional)
String *sort = sort_example; // sort key; available keys are: id, user_id, role, state, expires_at, created_at, username (optional)
String *sortDirection = sortDirection_example; // avaible values are: asc and desc (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// list members of the given organization;
[apiInstance orgmembers/indexWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
    userID:userID
    createdAt:createdAt
    customFields:customFields
    userId:userId
    role:role
    state:state
    sort:sort
    sortDirection:sortDirection
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 
var userID = 56; // {{Integer}} 
var opts = { 
  'createdAt': , // {{dateSearch}} 
  'customFields': , // {{customFeildsSearch}} 
  'userId': 56, // {{Integer}} filter members using userID
  'role': 56, // {{Integer}} filter members using their role
  'state': 56, // {{Integer}} filter members using their state
  'sort': sort_example, // {{String}} sort key; available keys are: id, user_id, role, state, expires_at, created_at, username
  'sortDirection': sortDirection_example // {{String}} avaible values are: asc and desc
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgmembers/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgmembers/indexExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 
            var userID = 56;  // Integer | 
            var createdAt = new dateSearch(); // dateSearch |  (optional) 
            var customFields = new customFeildsSearch(); // customFeildsSearch |  (optional) 
            var userId = 56;  // Integer | filter members using userID (optional) 
            var role = 56;  // Integer | filter members using their role (optional) 
            var state = 56;  // Integer | filter members using their state (optional) 
            var sort = sort_example;  // String | sort key; available keys are: id, user_id, role, state, expires_at, created_at, username (optional) 
            var sortDirection = sortDirection_example;  // String | avaible values are: asc and desc (optional) 

            try
            {
                // list members of the given organization;
                inline_response_200_2 result = apiInstance.orgmembers/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, createdAt, customFields, userId, role, state, sort, sortDirection);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgmembers/index: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 
$userID = 56; // Integer | 
$createdAt = ; // dateSearch | 
$customFields = ; // customFeildsSearch | 
$userId = 56; // Integer | filter members using userID
$role = 56; // Integer | filter members using their role
$state = 56; // Integer | filter members using their state
$sort = sort_example; // String | sort key; available keys are: id, user_id, role, state, expires_at, created_at, username
$sortDirection = sortDirection_example; // String | avaible values are: asc and desc

try {
    $result = $api_instance->orgmembers/index($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID, $userID, $createdAt, $customFields, $userId, $role, $state, $sort, $sortDirection);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgmembers/index: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 
my $userID = 56; # Integer | 
my $createdAt = ; # dateSearch | 
my $customFields = ; # customFeildsSearch | 
my $userId = 56; # Integer | filter members using userID
my $role = 56; # Integer | filter members using their role
my $state = 56; # Integer | filter members using their state
my $sort = sort_example; # String | sort key; available keys are: id, user_id, role, state, expires_at, created_at, username
my $sortDirection = sortDirection_example; # String | avaible values are: asc and desc

eval { 
    my $result = $api_instance->orgmembers/index(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID, userID => $userID, createdAt => $createdAt, customFields => $customFields, userId => $userId, role => $role, state => $state, sort => $sort, sortDirection => $sortDirection);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgmembers/index: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 
userID = 56 # Integer | 
createdAt =  # dateSearch |  (optional)
customFields =  # customFeildsSearch |  (optional)
userId = 56 # Integer | filter members using userID (optional)
role = 56 # Integer | filter members using their role (optional)
state = 56 # Integer | filter members using their state (optional)
sort = sort_example # String | sort key; available keys are: id, user_id, role, state, expires_at, created_at, username (optional)
sortDirection = sortDirection_example # String | avaible values are: asc and desc (optional)

try: 
    # list members of the given organization;
    api_response = api_instance.orgmembers/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, createdAt=createdAt, customFields=customFields, userId=userId, role=role, state=state, sort=sort, sortDirection=sortDirection)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgmembers/index: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
userID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required
Query parameters
Name Description
created_at
dateSearch
custom_fields
customFeildsSearch
user_id
Integer
filter members using userID
role
Integer
filter members using their role
state
Integer
filter members using their state
sort
String
sort key; available keys are: id, user_id, role, state, expires_at, created_at, username
sort_direction
String
avaible values are: asc and desc

Responses

Status: 200 - OK

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgmembers/update

update a member

هر قلمرو میتواند تمامی کاربران عضو در یک ارگان را ویرایش کند. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/edit/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "user_id": "1", "role": "3", "state": "2", "expires_at":" 2022-05-21", "custom_fields": founder: John Doe year: 1998 }' ````


/api/v1/auth/tenants/orgs/{orgID}/members/{userID}/update

Usage and SDK Samples

curl -X PATCH "//api/v1/auth/tenants/orgs/{orgID}/members/{userID}/update"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        MemberRequest body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // MemberRequest | 
        try {
            Member result = apiInstance.orgmembers/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        Integer userID = 56; // Integer | 
        MemberRequest body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // MemberRequest | 
        try {
            Member result = apiInstance.orgmembers/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgmembers/update");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 
Integer *userID = 56; // 
MemberRequest *body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update a member
[apiInstance orgmembers/updateWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
    userID:userID
    body:body
              completionHandler: ^(Member output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 
var userID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgmembers/update(contentTypeaccepttenantUsernamemanamAuthapiecoKeysecretorgIDuserID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgmembers/updateExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 
            var userID = 56;  // Integer | 
            var body = new MemberRequest(); // MemberRequest |  (optional) 

            try
            {
                // update a member
                Member result = apiInstance.orgmembers/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgmembers/update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 
$userID = 56; // Integer | 
$body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // MemberRequest | 

try {
    $result = $api_instance->orgmembers/update($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID, $userID, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgmembers/update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 
my $userID = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::MemberRequest->new(); # MemberRequest | 

eval { 
    my $result = $api_instance->orgmembers/update(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID, userID => $userID, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgmembers/update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 
userID = 56 # Integer | 
body = {
  "user_id" : 1,
  "role" : 2,
  "state" : 1,
  "expires_at" : { },
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
} # MemberRequest |  (optional)

try: 
    # update a member
    api_response = api_instance.orgmembers/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, userID, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgmembers/update: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
userID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - organization object

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgs/create

orgs/create

قلمرو می‌تواند یک ارگان برای یک کاربر عضو خود ایجاد کند. در این صورت این کاربر admin و owner خواهد بود. امکان ایجاد ارگان برای سایر کاربران تنها در دسترس قلمرو است و هیچ کاربر عضو در قلمرو با هر نقش و دسترسی‌ای، این امکان را در اختیار ندارد که ارگانی برای کاربر دیگری ایجاد کند. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/add/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "name": "this is a test organ", "username": "1", "owner_id": "2", "visibility":"1", "custom_fields": founder: John Doe year: 1998 }' ````


/api/v1/auth/tenants/orgs/create

Usage and SDK Samples

curl -X POST "//api/v1/auth/tenants/orgs/create"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        OrgRequest body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // OrgRequest | 
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        try {
            OrgBasic result = apiInstance.orgs/create(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/create");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        OrgRequest body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // OrgRequest | 
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        try {
            OrgBasic result = apiInstance.orgs/create(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/create");
            e.printStackTrace();
        }
    }
}
OrgRequest *body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // 
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// orgs/create
[apiInstance orgs/createWith:body
    contentType:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
              completionHandler: ^(OrgBasic output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // {{OrgRequest}} 
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgs/create(bodycontentTypeaccepttenantUsernamemanamAuthapiecoKeysecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgs/createExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new OrgRequest(); // OrgRequest | 
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // orgs/create
                OrgBasic result = apiInstance.orgs/create(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgs/create: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // OrgRequest | 
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 

try {
    $result = $api_instance->orgs/create($body, $contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgs/create: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::OrgRequest->new(); # OrgRequest | 
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 

eval { 
    my $result = $api_instance->orgs/create(body => $body, contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgs/create: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
} # OrgRequest | 
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 

try: 
    # orgs/create
    api_response = api_instance.orgs/create(body, contentType, accept, tenantUsername, manamAuth, apiecoKey, secret)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgs/create: %s\n" % e)

Parameters

Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - organization object

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found

Status: 422 - validation error


orgs/delete

orgs/delete

حذف یک ارگان تنها توسط قلمرو یا کاربر owner آن ارگان امکان‌پذیر است. ```` curl --location --request DELETE 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/delete \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ ````


/api/v1/auth/tenants/orgs/{orgID}/delete

Usage and SDK Samples

curl -X DELETE "//api/v1/auth/tenants/orgs/{orgID}/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        try {
            inline_response_200_1 result = apiInstance.orgs/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        try {
            inline_response_200_1 result = apiInstance.orgs/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/delete");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// orgs/delete
[apiInstance orgs/deleteWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgs/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgs/deleteExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 

            try
            {
                // orgs/delete
                inline_response_200_1 result = apiInstance.orgs/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgs/delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 

try {
    $result = $api_instance->orgs/delete($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgs/delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 

eval { 
    my $result = $api_instance->orgs/delete(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgs/delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 

try: 
    # orgs/delete
    api_response = api_instance.orgs/delete(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgs/delete: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required

Responses

Status: 200 - 200 response with a message

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgs/details

orgs/details

یک قلمرو میتواند جزییات ارگان های ساخته شده خود را ببیند. این جزییات شامل اطلاعات کلی ارگان و لیست اعضای آن سازمان است. ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/orgId' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ ````


/api/v1/auth/tenants/orgs/{orgID}

Usage and SDK Samples

curl -X GET "//api/v1/auth/tenants/orgs/{orgID}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        try {
            OrgBasic result = apiInstance.orgs/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/details");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        try {
            OrgBasic result = apiInstance.orgs/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/details");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// orgs/details
[apiInstance orgs/detailsWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
              completionHandler: ^(OrgBasic output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgs/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgs/detailsExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 

            try
            {
                // orgs/details
                OrgBasic result = apiInstance.orgs/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgs/details: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 

try {
    $result = $api_instance->orgs/details($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgs/details: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 

eval { 
    my $result = $api_instance->orgs/details(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgs/details: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 

try: 
    # orgs/details
    api_response = api_instance.orgs/details(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgs/details: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required

Responses

Status: 200 - organization object

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgs/index

list organizations

یک قلمرو میتواند تمامی ارگان های ایجاد شده توسط کاربران خود را لیست کرده و بر اساس پارامتر هایی در آن جستجو کند. برای مثال ارگان هایی که یک کاربر خاص مالک آن است یا ارگان هایی را که یک کاربر خاص، عضو آن است. ```` curl --location --request GET 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/ \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ ````


/api/v1/auth/tenants/orgs

Usage and SDK Samples

curl -X GET "//api/v1/auth/tenants/orgs?created_at=&custom_fields=&user_id=&owner_id=&state=&name=&username=&sort=&sort_direction="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        dateSearch createdAt = ; // dateSearch | 
        customFeildsSearch customFields = ; // customFeildsSearch | 
        Integer userId = 56; // Integer | filter organizations that the given user id is a member of it
        Integer ownerId = 56; // Integer | filter organizations that the given user id is a its owner
        Integer state = 56; // Integer | filter organizations with their status
        String name = name_example; // String | filter organizations with their name
        String username = username_example; // String | filter organizations with their username
        String sort = sort_example; // String | sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join
        String sortDirection = sortDirection_example; // String | avaible values are: asc and desc
        try {
            inline_response_200 result = apiInstance.orgs/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, createdAt, customFields, userId, ownerId, state, name, username, sort, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/index");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        dateSearch createdAt = ; // dateSearch | 
        customFeildsSearch customFields = ; // customFeildsSearch | 
        Integer userId = 56; // Integer | filter organizations that the given user id is a member of it
        Integer ownerId = 56; // Integer | filter organizations that the given user id is a its owner
        Integer state = 56; // Integer | filter organizations with their status
        String name = name_example; // String | filter organizations with their name
        String username = username_example; // String | filter organizations with their username
        String sort = sort_example; // String | sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join
        String sortDirection = sortDirection_example; // String | avaible values are: asc and desc
        try {
            inline_response_200 result = apiInstance.orgs/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, createdAt, customFields, userId, ownerId, state, name, username, sort, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/index");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
dateSearch *createdAt = ; //  (optional)
customFeildsSearch *customFields = ; //  (optional)
Integer *userId = 56; // filter organizations that the given user id is a member of it (optional)
Integer *ownerId = 56; // filter organizations that the given user id is a its owner (optional)
Integer *state = 56; // filter organizations with their status (optional)
String *name = name_example; // filter organizations with their name (optional)
String *username = username_example; // filter organizations with their username (optional)
String *sort = sort_example; // sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join (optional)
String *sortDirection = sortDirection_example; // avaible values are: asc and desc (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// list organizations
[apiInstance orgs/indexWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    createdAt:createdAt
    customFields:customFields
    userId:userId
    ownerId:ownerId
    state:state
    name:name
    username:username
    sort:sort
    sortDirection:sortDirection
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var opts = { 
  'createdAt': , // {{dateSearch}} 
  'customFields': , // {{customFeildsSearch}} 
  'userId': 56, // {{Integer}} filter organizations that the given user id is a member of it
  'ownerId': 56, // {{Integer}} filter organizations that the given user id is a its owner
  'state': 56, // {{Integer}} filter organizations with their status
  'name': name_example, // {{String}} filter organizations with their name
  'username': username_example, // {{String}} filter organizations with their username
  'sort': sort_example, // {{String}} sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join
  'sortDirection': sortDirection_example // {{String}} avaible values are: asc and desc
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgs/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgs/indexExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var createdAt = new dateSearch(); // dateSearch |  (optional) 
            var customFields = new customFeildsSearch(); // customFeildsSearch |  (optional) 
            var userId = 56;  // Integer | filter organizations that the given user id is a member of it (optional) 
            var ownerId = 56;  // Integer | filter organizations that the given user id is a its owner (optional) 
            var state = 56;  // Integer | filter organizations with their status (optional) 
            var name = name_example;  // String | filter organizations with their name (optional) 
            var username = username_example;  // String | filter organizations with their username (optional) 
            var sort = sort_example;  // String | sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join (optional) 
            var sortDirection = sortDirection_example;  // String | avaible values are: asc and desc (optional) 

            try
            {
                // list organizations
                inline_response_200 result = apiInstance.orgs/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, createdAt, customFields, userId, ownerId, state, name, username, sort, sortDirection);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgs/index: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$createdAt = ; // dateSearch | 
$customFields = ; // customFeildsSearch | 
$userId = 56; // Integer | filter organizations that the given user id is a member of it
$ownerId = 56; // Integer | filter organizations that the given user id is a its owner
$state = 56; // Integer | filter organizations with their status
$name = name_example; // String | filter organizations with their name
$username = username_example; // String | filter organizations with their username
$sort = sort_example; // String | sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join
$sortDirection = sortDirection_example; // String | avaible values are: asc and desc

try {
    $result = $api_instance->orgs/index($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $createdAt, $customFields, $userId, $ownerId, $state, $name, $username, $sort, $sortDirection);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgs/index: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $createdAt = ; # dateSearch | 
my $customFields = ; # customFeildsSearch | 
my $userId = 56; # Integer | filter organizations that the given user id is a member of it
my $ownerId = 56; # Integer | filter organizations that the given user id is a its owner
my $state = 56; # Integer | filter organizations with their status
my $name = name_example; # String | filter organizations with their name
my $username = username_example; # String | filter organizations with their username
my $sort = sort_example; # String | sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join
my $sortDirection = sortDirection_example; # String | avaible values are: asc and desc

eval { 
    my $result = $api_instance->orgs/index(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, createdAt => $createdAt, customFields => $customFields, userId => $userId, ownerId => $ownerId, state => $state, name => $name, username => $username, sort => $sort, sortDirection => $sortDirection);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgs/index: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
createdAt =  # dateSearch |  (optional)
customFields =  # customFeildsSearch |  (optional)
userId = 56 # Integer | filter organizations that the given user id is a member of it (optional)
ownerId = 56 # Integer | filter organizations that the given user id is a its owner (optional)
state = 56 # Integer | filter organizations with their status (optional)
name = name_example # String | filter organizations with their name (optional)
username = username_example # String | filter organizations with their username (optional)
sort = sort_example # String | sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join (optional)
sortDirection = sortDirection_example # String | avaible values are: asc and desc (optional)

try: 
    # list organizations
    api_response = api_instance.orgs/index(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, createdAt=createdAt, customFields=customFields, userId=userId, ownerId=ownerId, state=state, name=name, username=username, sort=sort, sortDirection=sortDirection)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgs/index: %s\n" % e)

Parameters

Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required
Query parameters
Name Description
created_at
dateSearch
custom_fields
customFeildsSearch
user_id
Integer
filter organizations that the given user id is a member of it
owner_id
Integer
filter organizations that the given user id is a its owner
state
Integer
filter organizations with their status
name
String
filter organizations with their name
username
String
filter organizations with their username
sort
String
sort key; available keys are: id, name, usename, state, tenant_id, owner_id, visibility, created_at, members_count, last_join
sort_direction
String
avaible values are: asc and desc

Responses

Status: 200 - OK

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


orgs/update

orgs/update

تنها کاربران عضو ارگان با دسترسی admin و tenant امکان ویرایش ارگان را خواهند داشت. تعیین دسترسی در tenant صورت می‌پذیرد و در نهایت درخواست از سمت tenant به منم ارسال می‌شود که عمل ویرایش صورت می‌گیرد. در صورتی‌که در زمان ویرایش، قلمرو مقدار owner_id را تغییر دهد، در حقیقت مالکیت را به فرد جدیدی انتقال داده است. ```` curl --location --request PATCH 'https://api.apieco.ir/manam/api/v1/auth/tenants/orgs/4/edit/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "name": "this is a test organ", "username": "1", "owner_id": "2", "visibility":"1", "custom_fields": founder: John Doe year: 1998 }' ````


/api/v1/auth/tenants/orgs/{orgID}/update

Usage and SDK Samples

curl -X PATCH "//api/v1/auth/tenants/orgs/{orgID}/update"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        OrgRequest body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // OrgRequest | 
        try {
            OrgBasic result = apiInstance.orgs/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String accept = accept_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        String apiecoKey = apiecoKey_example; // String | 
        String secret = secret_example; // String | 
        Integer orgID = 56; // Integer | 
        OrgRequest body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // OrgRequest | 
        try {
            OrgBasic result = apiInstance.orgs/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#orgs/update");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // 
String *accept = accept_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 
String *apiecoKey = apiecoKey_example; // 
String *secret = secret_example; // 
Integer *orgID = 56; // 
OrgRequest *body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// orgs/update
[apiInstance orgs/updateWith:contentType
    accept:accept
    tenantUsername:tenantUsername
    manamAuth:manamAuth
    apiecoKey:apiecoKey
    secret:secret
    orgID:orgID
    body:body
              completionHandler: ^(OrgBasic output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var contentType = contentType_example; // {{String}} 
var accept = accept_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var secret = secret_example; // {{String}} 
var orgID = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.orgs/update(contentTypeaccepttenantUsernamemanamAuthapiecoKeysecretorgID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class orgs/updateExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String | 
            var accept = accept_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 
            var apiecoKey = apiecoKey_example;  // String | 
            var secret = secret_example;  // String | 
            var orgID = 56;  // Integer | 
            var body = new OrgRequest(); // OrgRequest |  (optional) 

            try
            {
                // orgs/update
                OrgBasic result = apiInstance.orgs/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.orgs/update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$contentType = contentType_example; // String | 
$accept = accept_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 
$apiecoKey = apiecoKey_example; // String | 
$secret = secret_example; // String | 
$orgID = 56; // Integer | 
$body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
}; // OrgRequest | 

try {
    $result = $api_instance->orgs/update($contentType, $accept, $tenantUsername, $manamAuth, $apiecoKey, $secret, $orgID, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->orgs/update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $accept = accept_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 
my $apiecoKey = apiecoKey_example; # String | 
my $secret = secret_example; # String | 
my $orgID = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::OrgRequest->new(); # OrgRequest | 

eval { 
    my $result = $api_instance->orgs/update(contentType => $contentType, accept => $accept, tenantUsername => $tenantUsername, manamAuth => $manamAuth, apiecoKey => $apiecoKey, secret => $secret, orgID => $orgID, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->orgs/update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
contentType = contentType_example # String | 
accept = accept_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 
apiecoKey = apiecoKey_example # String | 
secret = secret_example # String | 
orgID = 56 # Integer | 
body = {
  "name" : "an awesome organization",
  "username" : "myorg",
  "state" : 1,
  "owner_id" : 2,
  "visibility" : 1,
  "custom_fields" : {
    "founder" : "John Doe",
    "year" : 1998
  }
} # OrgRequest |  (optional)

try: 
    # orgs/update
    api_response = api_instance.orgs/update(contentType, accept, tenantUsername, manamAuth, apiecoKey, secret, orgID, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->orgs/update: %s\n" % e)

Parameters

Path parameters
Name Description
orgID*
Integer
Required
Header parameters
Name Description
Content-Type*
String
Required
Accept*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
apieco-key*
String
Required
secret*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - organization object

Status: 400 - bad request body

Status: 401 - unauthenticated

Status: 403 - permission denied

Status: 404 - record not found


refreshtoken

refresh token

در صورتی که توکن دسترسی شما منقضی شود، دیگر شما مجاز به انجام عملیات ها نیستید. برای این کار باید توسط توکن تجدید، توکن دسترسی جدید درخواست کنید. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/auth/users/refresh-token/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "username":"testuser", "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODc0MDcyODMsImp0aSI6ImIzZDY2NzAwLTZiYTEtMTFlYS1hMzc5LTAyNDJhYzFmMDAwMyIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.MxOMMspfmWYzjL_HXmQuRhGHYEVVDLC3Zs5dHjcy9OfwxZgddJXAwjFlo35vXEt3W2ALD6AVD0cFohKcbuZuIvIt5H-71xyxjGMBCBUe5F9J3tcNaiWGDThKhw_8L0siZ6BZajGibWh6bKiRxZI26Pyg7ecHxXIWZwE7UQ-uyIsWcxqYLAWDzXvlCXla3Surj71PDxbwNLBEyQy8VUioPm9Pp8hWdeC5KRJ_bB1okWx-0VLspSAOUTnTaXfw-Xpx7yUud6vi34Oi6DHczrme3RpZJrrNxQTXZVTRyU84dvKYEYz-u3YJ6FuqgJVRTv_ebExYWuVY6enKZefHwbIE_A" }' ```` در پاسخ این درخواست، توکن تجدید و توکن دسترسی جدید ارسال می گردد. ```` "message": {     "auth_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw",     "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODc0MTk3OTAsImp0aSI6ImIzZDY2NzAwLTZiYTEtMTFlYS1hMzc5LTAyNDJhYzFmMDAwMyIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.UXWPqsHum-lzrPq5id6SbFc3FuWI2oxem3pc7DzGMHyYV4i9YhVow4z1wlb1uabRzf8ox2o3JolfjP3PgO_TW6hgSaQBv226_pbrbNMFkwGqDYScO398cI0k0HPPZwjhwgjJgUp-4TSXgDn0kOa7z7Q3Oy0aFcOGWBae9gX3RCrK9P7F4UxWgQjiF_zqq6r35c53ndDBFuzWQ-kEGAQRUAFXvK0GmlV5E9U5dl3PUAEO0xciw3Ex17BIHALGiqzTOExn16LdnhrYXR5ZIHTTzkTIBFBFm34kGmjDDs4T-lxZIzEjl5K4D-HIjA7-XtokoZeekdifiLXa0ItgGTCxCA",     "token_type": "Bearer"    } ````


/v1/auth/users/refresh-token

Usage and SDK Samples

curl -X POST "//v1/auth/users/refresh-token"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Refreshtokenrequest body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAyMDcsImp0aSI6IjNlN2ZjNWZhLTQzYmItMTFlYS04MDI3LTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.vujYYCO5h1Vx8jJtvvMV--mZSH0qzGGbz7kkH4zfXCgDguPPOMBTLbS6fTfvgYpGcOzRaC1EREbaAqrPf-KAgkFOE-MVLmlvDurRGx4t5xhx3SNeuRB2m_iEpfvGLIns30jpRHuiYDQ45bCQyXTmaVswkUde9RvKlzjAVn6Qou7lQBO41ITxkp9mPmjRwTnzIwNeMtj94POyv_5sVpsc9s0ZGfUnOlY4ldCfZcQWkycPTyTNFBGKwVlxcMec5Yohrea8wC52jQLahlIn_i2FZFjR0OtC5V5DOrYhD_8s3TrAqID2NlLBGJ_1MyTzrIB02-TWcAM2cn3qUR9gYB7YEg"
}; // Refreshtokenrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.refreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#refreshtoken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Refreshtokenrequest body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAyMDcsImp0aSI6IjNlN2ZjNWZhLTQzYmItMTFlYS04MDI3LTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.vujYYCO5h1Vx8jJtvvMV--mZSH0qzGGbz7kkH4zfXCgDguPPOMBTLbS6fTfvgYpGcOzRaC1EREbaAqrPf-KAgkFOE-MVLmlvDurRGx4t5xhx3SNeuRB2m_iEpfvGLIns30jpRHuiYDQ45bCQyXTmaVswkUde9RvKlzjAVn6Qou7lQBO41ITxkp9mPmjRwTnzIwNeMtj94POyv_5sVpsc9s0ZGfUnOlY4ldCfZcQWkycPTyTNFBGKwVlxcMec5Yohrea8wC52jQLahlIn_i2FZFjR0OtC5V5DOrYhD_8s3TrAqID2NlLBGJ_1MyTzrIB02-TWcAM2cn3qUR9gYB7YEg"
}; // Refreshtokenrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.refreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#refreshtoken");
            e.printStackTrace();
        }
    }
}
Refreshtokenrequest *body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAyMDcsImp0aSI6IjNlN2ZjNWZhLTQzYmItMTFlYS04MDI3LTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.vujYYCO5h1Vx8jJtvvMV--mZSH0qzGGbz7kkH4zfXCgDguPPOMBTLbS6fTfvgYpGcOzRaC1EREbaAqrPf-KAgkFOE-MVLmlvDurRGx4t5xhx3SNeuRB2m_iEpfvGLIns30jpRHuiYDQ45bCQyXTmaVswkUde9RvKlzjAVn6Qou7lQBO41ITxkp9mPmjRwTnzIwNeMtj94POyv_5sVpsc9s0ZGfUnOlY4ldCfZcQWkycPTyTNFBGKwVlxcMec5Yohrea8wC52jQLahlIn_i2FZFjR0OtC5V5DOrYhD_8s3TrAqID2NlLBGJ_1MyTzrIB02-TWcAM2cn3qUR9gYB7YEg"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// refresh token
[apiInstance refreshtokenWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAyMDcsImp0aSI6IjNlN2ZjNWZhLTQzYmItMTFlYS04MDI3LTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.vujYYCO5h1Vx8jJtvvMV--mZSH0qzGGbz7kkH4zfXCgDguPPOMBTLbS6fTfvgYpGcOzRaC1EREbaAqrPf-KAgkFOE-MVLmlvDurRGx4t5xhx3SNeuRB2m_iEpfvGLIns30jpRHuiYDQ45bCQyXTmaVswkUde9RvKlzjAVn6Qou7lQBO41ITxkp9mPmjRwTnzIwNeMtj94POyv_5sVpsc9s0ZGfUnOlY4ldCfZcQWkycPTyTNFBGKwVlxcMec5Yohrea8wC52jQLahlIn_i2FZFjR0OtC5V5DOrYhD_8s3TrAqID2NlLBGJ_1MyTzrIB02-TWcAM2cn3qUR9gYB7YEg"
}; // {{Refreshtokenrequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.refreshtoken(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecretmanamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class refreshtokenExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Refreshtokenrequest(); // Refreshtokenrequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // refresh token
                apiInstance.refreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.refreshtoken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAyMDcsImp0aSI6IjNlN2ZjNWZhLTQzYmItMTFlYS04MDI3LTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.vujYYCO5h1Vx8jJtvvMV--mZSH0qzGGbz7kkH4zfXCgDguPPOMBTLbS6fTfvgYpGcOzRaC1EREbaAqrPf-KAgkFOE-MVLmlvDurRGx4t5xhx3SNeuRB2m_iEpfvGLIns30jpRHuiYDQ45bCQyXTmaVswkUde9RvKlzjAVn6Qou7lQBO41ITxkp9mPmjRwTnzIwNeMtj94POyv_5sVpsc9s0ZGfUnOlY4ldCfZcQWkycPTyTNFBGKwVlxcMec5Yohrea8wC52jQLahlIn_i2FZFjR0OtC5V5DOrYhD_8s3TrAqID2NlLBGJ_1MyTzrIB02-TWcAM2cn3qUR9gYB7YEg"
}; // Refreshtokenrequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->refreshtoken($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->refreshtoken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Refreshtokenrequest->new(); # Refreshtokenrequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->refreshtoken(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->refreshtoken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAyMDcsImp0aSI6IjNlN2ZjNWZhLTQzYmItMTFlYS04MDI3LTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.vujYYCO5h1Vx8jJtvvMV--mZSH0qzGGbz7kkH4zfXCgDguPPOMBTLbS6fTfvgYpGcOzRaC1EREbaAqrPf-KAgkFOE-MVLmlvDurRGx4t5xhx3SNeuRB2m_iEpfvGLIns30jpRHuiYDQ45bCQyXTmaVswkUde9RvKlzjAVn6Qou7lQBO41ITxkp9mPmjRwTnzIwNeMtj94POyv_5sVpsc9s0ZGfUnOlY4ldCfZcQWkycPTyTNFBGKwVlxcMec5Yohrea8wC52jQLahlIn_i2FZFjR0OtC5V5DOrYhD_8s3TrAqID2NlLBGJ_1MyTzrIB02-TWcAM2cn3qUR9gYB7YEg"
} # Refreshtokenrequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # refresh token
    api_instance.refreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->refreshtoken: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username/ invalid authentication token

Status: 403 -

Status: 404 - record not found


registerTenant

Register Tenant

در اولین قدم، سازمان ها باید قلمرو خود را ایجاد کنند ```` curl -X POST \ https://api.apieco.ir/manam/api/v1/any/tenants/register \ -H 'apieco-key: xxxxxxxxxxx' \ -H 'content-type: application/json' \ -d '{ "username": "sample1", "email": "sample1@gmail.com", "confirm_email": "false", "confirm_phone": "false", "email_is_username":"false", "phone_is_username":"false", "timeout":"1440", "custom_identity": ["national_code"] }' ```` در ادامه به توضیح هر کدام از پارامترهای بالا می پردازیم: username: نام کاربری انتخاب شده برای قلمرو email: ایمیل مدیر قلمرو confirm_email: نشان می دهد که آیا این قلمرو تایید ایمیل کاربران خود را اجباری می داند یا خیر confirm_phone: نشان می دهد که آیا این قلمرو تایید تلفن همراه کاربران خود را اجباری می داند یا خیر email_is_username: نشان می دهد که آیا کاربران قلمرو می توانند از ایمیل به عنوان یوزرنیم خود استفاده کنند یا خیر phone_is_username: نشان می دهد که آیا کاربران قلمرو می توانند از شماره تلفن به عنوان یوزرنیم خود استفاده کنند یا خیر timeout: مدت زمان اعتبار سشن custom_identities: تصور کنید مدیر یک قلمرو در نظر دارد کاربران با اطلاعاتی به غیر از نام و کاربری و رمز عبور، مانند کد ملی یا کد پرسنلی، اجازه دسترسی به سیستم را داشته باشند.در این حالت با تنظیم این فیلد کاربران موظف اند علاوه بر اطلاعات فیلدهای قبلی،اطلاعات فیلدهایی که قلمرو مشخص کرده است را نیز فراهم کنند. با تنظیم این فیلد، کاربران قلمرو فقط با فیلدهایی که در تنظیمات قلمرو مشخص شده است، امکان ورود به سیستم را دارند. با ارسال این درخواست، سرویس منم در جواب اطلاعاتی از قلمرو ثبت شده را برمی گرداند، شمایی از این اطلاعات را در ادامه می بینید: ````     "message": {         "tenant": {             "username": "alireza",             "password": "I1+6kP^082yV",             "name": "",             "email": "alireza@gmail.com",             "timeout": "1440",             "confirm_email": "true",             "confirm_phone": "true",             "phone_is_username": "false",             "email_is_username": "false",             "is_active": 1         },         "clients_details": [             {                 "name": "javad-hosseini-manam",                 "cid": "2d9e6f0d-8bc1-42a8-82ed-5a561fe68d44",                 "secret": "90a5ab9e-6b48-11ea-a379-0242ac1f0003"             }         ]     } ```` همانطور که در پاسخ بالا مشاهده می کنید، علاوه بر اطلاعاتی که به همراه درخواست فرستاده شد اطلاعات مربوط به کلاینت هم برگردانده می شود. در واقع با درخواست ایجاد قلمرو منم به طور خودکار یک کلاینت برای این قلمرو اضافه می کند. در درخواست‌های بعدی پارامتر secret مورد استفاده قرار می گیرد، البته قبل از استفاده باید آن را به فرمت base64 تبدیل کرد.


/v1/any/tenants/register

Usage and SDK Samples

curl -X POST "//v1/any/tenants/register"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        RegisterTenantRequest body = {
  "username" : "alireza",
  "email" : "alireza1@gm1aiqql.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // RegisterTenantRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.registerTenant(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registerTenant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        RegisterTenantRequest body = {
  "username" : "alireza",
  "email" : "alireza1@gm1aiqql.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // RegisterTenantRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.registerTenant(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registerTenant");
            e.printStackTrace();
        }
    }
}
RegisterTenantRequest *body = {
  "username" : "alireza",
  "email" : "alireza1@gm1aiqql.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Register Tenant
[apiInstance registerTenantWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "email" : "alireza1@gm1aiqql.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // {{RegisterTenantRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.registerTenant(bodyapiecoKeyxConsumerIdxConsumerUsername, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registerTenantExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new RegisterTenantRequest(); // RegisterTenantRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 

            try
            {
                // Register Tenant
                apiInstance.registerTenant(body, apiecoKey, xConsumerId, xConsumerUsername);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.registerTenant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "email" : "alireza1@gm1aiqql.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // RegisterTenantRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 

try {
    $api_instance->registerTenant($body, $apiecoKey, $xConsumerId, $xConsumerUsername);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->registerTenant: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::RegisterTenantRequest->new(); # RegisterTenantRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 

eval { 
    $api_instance->registerTenant(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername);
};
if ($@) {
    warn "Exception when calling DefaultApi->registerTenant: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "email" : "alireza1@gm1aiqql.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
} # RegisterTenantRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 

try: 
    # Register Tenant
    api_instance.register_tenant(body, apiecoKey, xConsumerId, xConsumerUsername)
except ApiException as e:
    print("Exception when calling DefaultApi->registerTenant: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ does not validate as username/ does not validate as email

Status: 404 - record not found

Status: 500 - internal server error


registeruser

Register user

:با درخواست زیر کاربر در قلمرو مشخص شده ثبت نام می کند ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/register/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'secret: YmQ2ZjJhNGItNmI3Zi0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --data-raw '{ "phone": "0911XXXXXXX", "username": "testuser", "password": "12345678", "email":"javadXXXXXXX@gmail.com", "user_custom_identities":{ "national_code": "20604845" } }' ```` نکته ای که در این درخواست وجود دارد این است که، در صورتی که در قلمرو مربوط به این کاربر، فیلد confirm_phone برابر با false باشد، دیگر ضرورتی برای وجود پارامتر phone در هنگام ثبت کاربر نیست و همچنین کاربر احتیاجی به تایید آن در صورت وارد کردن آن هنگام ثبت نام ندارد. برای ایمیل نیز همین مسئله صدق می کند. همچنین، با توجه به اینکه در قلمرو مربوطه فیلد احراز هویت سفارشی فعال شده است، کاربر موظف به فراهم کردن مقدار برای این پارامتر است. با ارسال این درخواست با توجه به تنظیمات قلمرویی که در بالا ذکر شد، کد تاییدی برای تلفن همراه و یا ایمیل و یا هردو آن ها ارسال می گردد. پاسخ درخواست بالا به صورت زیر است: ```` "message": {         "username": "testuser",         "email": "javadXXXXXXXXXXXXX@gmail.com",         "phone": "0911XXXXXXX",         "role": 5,         "email_verify": 0,         "phone_verify": 0   } ```` در ادامه به شرح پارامترهای پاسخ بالا می پردازیم. role: نقش کاربر، که با عدد 5 مشخص می شود. email_verify: که در اینجا چون ایمیل تایید نشده است صفر است که در صورت تایید این عدد به 1 تغییر می کند. phone_verify: که در اینجا چون شماره تلفن همراه تایید نشده است صفر است که در صورت تایید این عدد به 1 تغییر می کند. در این حالت، زمانی که ایمیل یا تلفن همراه کاربر، با توجه به تنظیمات قلمرو، تایید نشده است، کاربر باید ابتدا این اطلاعات را تایید کند تا بتواند وارد محیط کاربری خود شود.


/v1/any/users/register

Usage and SDK Samples

curl -X POST "//v1/any/users/register"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        RegisteruserRequest body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "password" : 12345678,
  "phone" : "098123456"
}; // RegisteruserRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.registeruser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registeruser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        RegisteruserRequest body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "password" : 12345678,
  "phone" : "098123456"
}; // RegisteruserRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.registeruser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registeruser");
            e.printStackTrace();
        }
    }
}
RegisteruserRequest *body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "password" : 12345678,
  "phone" : "098123456"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Register user
[apiInstance registeruserWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "password" : 12345678,
  "phone" : "098123456"
}; // {{RegisteruserRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.registeruser(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registeruserExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new RegisteruserRequest(); // RegisteruserRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Register user
                apiInstance.registeruser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.registeruser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "password" : 12345678,
  "phone" : "098123456"
}; // RegisteruserRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->registeruser($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->registeruser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::RegisteruserRequest->new(); # RegisteruserRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->registeruser(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->registeruser: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "password" : 12345678,
  "phone" : "098123456"
} # RegisteruserRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Register user
    api_instance.registeruser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->registeruser: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ does not validate as username/ does not validate as email /invalid email received/ invalid phone received/ your tenant has been deactivated, please contact your administrator

Status: 404 - record not found/ invalid phone received/ your tenant has been deactivated, please contact your administrator

Status: 500 - internal server error


resendverification

resend verification


/v1/any/users/verification/resend

Usage and SDK Samples

curl -X POST "//v1/any/users/verification/resend"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Resendverificationrequest body = {
  "username" : "alireza"
}; // Resendverificationrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.resendverification(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendverification");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Resendverificationrequest body = {
  "username" : "alireza"
}; // Resendverificationrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.resendverification(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendverification");
            e.printStackTrace();
        }
    }
}
Resendverificationrequest *body = {
  "username" : "alireza"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// resend verification
[apiInstance resendverificationWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza"
}; // {{Resendverificationrequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.resendverification(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resendverificationExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Resendverificationrequest(); // Resendverificationrequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // resend verification
                apiInstance.resendverification(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.resendverification: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza"
}; // Resendverificationrequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->resendverification($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->resendverification: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Resendverificationrequest->new(); # Resendverificationrequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->resendverification(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->resendverification: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza"
} # Resendverificationrequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # resend verification
    api_instance.resendverification(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->resendverification: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username

Status: 404 - record not found

Status: 500 - internal server error


resetpassworduser

reset password user

برای تغییر رمز عبور باید از این درخواست استفاده کنید: ```` curl --location --request PUT 'https://api.apieco.ir/manam/api/v1/auth/users/reset-password/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXX' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "username":"testuser", "old_password":"x2J[84Vp", "new_password":"12345678" }' ```` پاسخ این درخواست به شکل زیر است: ```` "message": {      "username": "testuser",      "new_password": "12345678"  } ````


/v1/auth/users/reset-password

Usage and SDK Samples

curl -X PUT "//v1/auth/users/reset-password"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Resetpassworduserrequest body = {
  "username" : "alireza",
  "old_password" : "Z8^XO{$b",
  "new_password" : 12345678
}; // Resetpassworduserrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.resetpassworduser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resetpassworduser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Resetpassworduserrequest body = {
  "username" : "alireza",
  "old_password" : "Z8^XO{$b",
  "new_password" : 12345678
}; // Resetpassworduserrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.resetpassworduser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resetpassworduser");
            e.printStackTrace();
        }
    }
}
Resetpassworduserrequest *body = {
  "username" : "alireza",
  "old_password" : "Z8^XO{$b",
  "new_password" : 12345678
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// reset password user
[apiInstance resetpassworduserWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "old_password" : "Z8^XO{$b",
  "new_password" : 12345678
}; // {{Resetpassworduserrequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.resetpassworduser(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecretmanamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resetpassworduserExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Resetpassworduserrequest(); // Resetpassworduserrequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // reset password user
                apiInstance.resetpassworduser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.resetpassworduser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "old_password" : "Z8^XO{$b",
  "new_password" : 12345678
}; // Resetpassworduserrequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->resetpassworduser($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->resetpassworduser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Resetpassworduserrequest->new(); # Resetpassworduserrequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->resetpassworduser(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->resetpassworduser: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "old_password" : "Z8^XO{$b",
  "new_password" : 12345678
} # Resetpassworduserrequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # reset password user
    api_instance.resetpassworduser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->resetpassworduser: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username/ empty or short password

Status: 500 - internal server error/ invalid user credential has been received/ user is not activated, please active the user first


revokeclientsecret

Revoke client secret


/v1/auth/tenants/clients/revoke

Usage and SDK Samples

curl -X POST "//v1/auth/tenants/clients/revoke"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.revokeclientsecret(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#revokeclientsecret");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.revokeclientsecret(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#revokeclientsecret");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Revoke client secret
[apiInstance revokeclientsecretWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.revokeclientsecret(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class revokeclientsecretExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Revoke client secret
                apiInstance.revokeclientsecret(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.revokeclientsecret: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->revokeclientsecret($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->revokeclientsecret: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->revokeclientsecret(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->revokeclientsecret: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Revoke client secret
    api_instance.revokeclientsecret(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->revokeclientsecret: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator

Status: 500 - internal server error


revokerefreshtoken

revoke refresh token


/v1/auth/users/refresh-token/revoke

Usage and SDK Samples

curl -X POST "//v1/auth/users/refresh-token/revoke"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Revokerefreshtokenrequest body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAxMDIsImp0aSI6ImZmZTAwZmJjLTQzYmEtMTFlYS04ZDhjLTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.0JsowH7iNdBvTJKs22_bbnG5o37LJ-qck9gCBNzWGulteuyrYkX_YCNOk1Piz1XsCXmv2PBhIUMsbUJPVl7oe4kSOtuufpyzV3j8UMqYOHcV0JQ0IfCjryPQGJ3132D4fmExa02FlnJ4lYntPOAGhTzrwY176Fkqkcy-0e-k9InGLYGnJWFizUcX95MVHNuy4rnMLOSfxP6FSt2sGbHIorHv4gB2ha0EwunzRWbfY8EprGMGOmm0FmdUSQ88bTNYcgGot7bVx0cPZ2sGHMPRBsT5jyGrpffiTcIROR-bvk7bd86JO9Uy_LinMb7rwfDXq4GrZTmVMNrDV4fGi7WACQ"
}; // Revokerefreshtokenrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.revokerefreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#revokerefreshtoken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Revokerefreshtokenrequest body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAxMDIsImp0aSI6ImZmZTAwZmJjLTQzYmEtMTFlYS04ZDhjLTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.0JsowH7iNdBvTJKs22_bbnG5o37LJ-qck9gCBNzWGulteuyrYkX_YCNOk1Piz1XsCXmv2PBhIUMsbUJPVl7oe4kSOtuufpyzV3j8UMqYOHcV0JQ0IfCjryPQGJ3132D4fmExa02FlnJ4lYntPOAGhTzrwY176Fkqkcy-0e-k9InGLYGnJWFizUcX95MVHNuy4rnMLOSfxP6FSt2sGbHIorHv4gB2ha0EwunzRWbfY8EprGMGOmm0FmdUSQ88bTNYcgGot7bVx0cPZ2sGHMPRBsT5jyGrpffiTcIROR-bvk7bd86JO9Uy_LinMb7rwfDXq4GrZTmVMNrDV4fGi7WACQ"
}; // Revokerefreshtokenrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.revokerefreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#revokerefreshtoken");
            e.printStackTrace();
        }
    }
}
Revokerefreshtokenrequest *body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAxMDIsImp0aSI6ImZmZTAwZmJjLTQzYmEtMTFlYS04ZDhjLTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.0JsowH7iNdBvTJKs22_bbnG5o37LJ-qck9gCBNzWGulteuyrYkX_YCNOk1Piz1XsCXmv2PBhIUMsbUJPVl7oe4kSOtuufpyzV3j8UMqYOHcV0JQ0IfCjryPQGJ3132D4fmExa02FlnJ4lYntPOAGhTzrwY176Fkqkcy-0e-k9InGLYGnJWFizUcX95MVHNuy4rnMLOSfxP6FSt2sGbHIorHv4gB2ha0EwunzRWbfY8EprGMGOmm0FmdUSQ88bTNYcgGot7bVx0cPZ2sGHMPRBsT5jyGrpffiTcIROR-bvk7bd86JO9Uy_LinMb7rwfDXq4GrZTmVMNrDV4fGi7WACQ"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// revoke refresh token
[apiInstance revokerefreshtokenWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAxMDIsImp0aSI6ImZmZTAwZmJjLTQzYmEtMTFlYS04ZDhjLTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.0JsowH7iNdBvTJKs22_bbnG5o37LJ-qck9gCBNzWGulteuyrYkX_YCNOk1Piz1XsCXmv2PBhIUMsbUJPVl7oe4kSOtuufpyzV3j8UMqYOHcV0JQ0IfCjryPQGJ3132D4fmExa02FlnJ4lYntPOAGhTzrwY176Fkqkcy-0e-k9InGLYGnJWFizUcX95MVHNuy4rnMLOSfxP6FSt2sGbHIorHv4gB2ha0EwunzRWbfY8EprGMGOmm0FmdUSQ88bTNYcgGot7bVx0cPZ2sGHMPRBsT5jyGrpffiTcIROR-bvk7bd86JO9Uy_LinMb7rwfDXq4GrZTmVMNrDV4fGi7WACQ"
}; // {{Revokerefreshtokenrequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.revokerefreshtoken(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecretmanamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class revokerefreshtokenExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Revokerefreshtokenrequest(); // Revokerefreshtokenrequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // revoke refresh token
                apiInstance.revokerefreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.revokerefreshtoken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAxMDIsImp0aSI6ImZmZTAwZmJjLTQzYmEtMTFlYS04ZDhjLTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.0JsowH7iNdBvTJKs22_bbnG5o37LJ-qck9gCBNzWGulteuyrYkX_YCNOk1Piz1XsCXmv2PBhIUMsbUJPVl7oe4kSOtuufpyzV3j8UMqYOHcV0JQ0IfCjryPQGJ3132D4fmExa02FlnJ4lYntPOAGhTzrwY176Fkqkcy-0e-k9InGLYGnJWFizUcX95MVHNuy4rnMLOSfxP6FSt2sGbHIorHv4gB2ha0EwunzRWbfY8EprGMGOmm0FmdUSQ88bTNYcgGot7bVx0cPZ2sGHMPRBsT5jyGrpffiTcIROR-bvk7bd86JO9Uy_LinMb7rwfDXq4GrZTmVMNrDV4fGi7WACQ"
}; // Revokerefreshtokenrequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->revokerefreshtoken($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->revokerefreshtoken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Revokerefreshtokenrequest->new(); # Revokerefreshtokenrequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->revokerefreshtoken(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->revokerefreshtoken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODMwMjAxMDIsImp0aSI6ImZmZTAwZmJjLTQzYmEtMTFlYS04ZDhjLTk4MDFhNzkzYzhmZiIsInJvbGUiOjAsInRlbmFudF91c2VybmFtZSI6IiIsInRlbmFudF9pZCI6MCwidXNlcl9pZCI6MCwidXNlcm5hbWUiOiIifQ.0JsowH7iNdBvTJKs22_bbnG5o37LJ-qck9gCBNzWGulteuyrYkX_YCNOk1Piz1XsCXmv2PBhIUMsbUJPVl7oe4kSOtuufpyzV3j8UMqYOHcV0JQ0IfCjryPQGJ3132D4fmExa02FlnJ4lYntPOAGhTzrwY176Fkqkcy-0e-k9InGLYGnJWFizUcX95MVHNuy4rnMLOSfxP6FSt2sGbHIorHv4gB2ha0EwunzRWbfY8EprGMGOmm0FmdUSQ88bTNYcgGot7bVx0cPZ2sGHMPRBsT5jyGrpffiTcIROR-bvk7bd86JO9Uy_LinMb7rwfDXq4GrZTmVMNrDV4fGi7WACQ"
} # Revokerefreshtokenrequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # revoke refresh token
    api_instance.revokerefreshtoken(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->revokerefreshtoken: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username /invalid authentication token

Status: 404 - record not found

Status: 500 - internal server error/ invalid authentication token


sendotpcode

send otp code to user

در صورتی که نمی خواهید به هر دلیلی برای وارد شدن به سیستم از رمز عبور خود استفاده کنید، می توانید درخواست رمز یک‌بار مصرف دهید. با این درخواست، کدی به تلفن همراه‌تان ارسال می گردد: ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/otp' \ --header 'Content-Type: application/json' \ --header 'tenant_username: testTenant' \ --header 'secret: NjdmODA0YWMtNjk1My0xMWVhLThjNmYtNTQ0MjQ5NWNlMTE4' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --header 'Content-Type: text/plain' \ --data-raw '{ "username":"alireza" }' ```` با ارسال این درخواست کد ۶ رقمی به تلفن همراه شما ارسال می گردد که با فرستادن این کد در درخواست بعدی می توانید وارد محیط کاربری خود شوید.


/v1/any/users/otp

Usage and SDK Samples

curl -X POST "//v1/any/users/otp"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.sendotpcode(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#sendotpcode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.sendotpcode(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#sendotpcode");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// send otp code to user
[apiInstance sendotpcodeWith:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sendotpcode(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class sendotpcodeExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // send otp code to user
                apiInstance.sendotpcode(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.sendotpcode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->sendotpcode($apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->sendotpcode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->sendotpcode(apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->sendotpcode: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # send otp code to user
    api_instance.sendotpcode(apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->sendotpcode: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator


tenantConfirmForgetEmail

Tenant Confirm Forget Email

کد به دست آمده از درخواست قبلی را باید در درخواست زیر به همراه نام کاربری قلمرو ارسال کنید. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/tenants/confirm/email/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXX' \ --data-raw '{ "username": "jeyhosseini", "code": "902456" }' ```` با ارسال این درخواست رمز عبور جدید برای شما ارسال می شود: ```` "message": { "username": "alireza",   "new_password": "r8g6K7a|" } ````


/any/tenants/confirm/email/

Usage and SDK Samples

curl -X POST "//any/tenants/confirm/email/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        TenantConfirmForgetEmail body = {
  "username" : "alireza",
  "code" : 123456
}; // TenantConfirmForgetEmail | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.tenantConfirmForgetEmail(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantConfirmForgetEmail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        TenantConfirmForgetEmail body = {
  "username" : "alireza",
  "code" : 123456
}; // TenantConfirmForgetEmail | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.tenantConfirmForgetEmail(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantConfirmForgetEmail");
            e.printStackTrace();
        }
    }
}
TenantConfirmForgetEmail *body = {
  "username" : "alireza",
  "code" : 123456
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Tenant Confirm Forget Email
[apiInstance tenantConfirmForgetEmailWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "code" : 123456
}; // {{TenantConfirmForgetEmail}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.tenantConfirmForgetEmail(bodyapiecoKeyxConsumerIdxConsumerUsername, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class tenantConfirmForgetEmailExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new TenantConfirmForgetEmail(); // TenantConfirmForgetEmail | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 

            try
            {
                // Tenant Confirm Forget Email
                apiInstance.tenantConfirmForgetEmail(body, apiecoKey, xConsumerId, xConsumerUsername);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.tenantConfirmForgetEmail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "code" : 123456
}; // TenantConfirmForgetEmail | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 

try {
    $api_instance->tenantConfirmForgetEmail($body, $apiecoKey, $xConsumerId, $xConsumerUsername);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantConfirmForgetEmail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::TenantConfirmForgetEmail->new(); # TenantConfirmForgetEmail | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 

eval { 
    $api_instance->tenantConfirmForgetEmail(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantConfirmForgetEmail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "code" : 123456
} # TenantConfirmForgetEmail | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 

try: 
    # Tenant Confirm Forget Email
    api_instance.tenant_confirm_forget_email(body, apiecoKey, xConsumerId, xConsumerUsername)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantConfirmForgetEmail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - invalid or short username/ does not validate as username

Status: 403 - invalid username or code

Status: 404 - record not found

Status: 500 - internal server error


tenantForgetPasswordEmail

Tenant Forget Password Email

در صورتی که رمز ورود قلمرو را فراموش کرده اید، با این درخواست ابتدا کدی 6 رقمی به ایمیل شما ارسال می شود: ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/tenants/email/forget' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXX' \ --data-raw '{ "username": "alireza" }' ```` ```` "message": {       "manam_response": "alireza3, check tenant's email for verification code"      } ````


/any/tenants/email/forget/

Usage and SDK Samples

curl -X POST "//any/tenants/email/forget/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        TenantForgetPasswordEmail body = {
  "username" : "alireza"
}; // TenantForgetPasswordEmail | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.tenantForgetPasswordEmail(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantForgetPasswordEmail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        TenantForgetPasswordEmail body = {
  "username" : "alireza"
}; // TenantForgetPasswordEmail | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        try {
            apiInstance.tenantForgetPasswordEmail(body, apiecoKey, xConsumerId, xConsumerUsername);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantForgetPasswordEmail");
            e.printStackTrace();
        }
    }
}
TenantForgetPasswordEmail *body = {
  "username" : "alireza"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Tenant Forget Password Email
[apiInstance tenantForgetPasswordEmailWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza"
}; // {{TenantForgetPasswordEmail}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.tenantForgetPasswordEmail(bodyapiecoKeyxConsumerIdxConsumerUsername, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class tenantForgetPasswordEmailExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new TenantForgetPasswordEmail(); // TenantForgetPasswordEmail | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 

            try
            {
                // Tenant Forget Password Email
                apiInstance.tenantForgetPasswordEmail(body, apiecoKey, xConsumerId, xConsumerUsername);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.tenantForgetPasswordEmail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza"
}; // TenantForgetPasswordEmail | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 

try {
    $api_instance->tenantForgetPasswordEmail($body, $apiecoKey, $xConsumerId, $xConsumerUsername);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantForgetPasswordEmail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::TenantForgetPasswordEmail->new(); # TenantForgetPasswordEmail | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 

eval { 
    $api_instance->tenantForgetPasswordEmail(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantForgetPasswordEmail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza"
} # TenantForgetPasswordEmail | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 

try: 
    # Tenant Forget Password Email
    api_instance.tenant_forget_password_email(body, apiecoKey, xConsumerId, xConsumerUsername)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantForgetPasswordEmail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - invalid or short username/ does not validate as username

Status: 404 - record not found

Status: 500 - internal server error


updatetenant

Update tenant


/v1/auth/tenants/update

Usage and SDK Samples

curl -X PUT "//v1/auth/tenants/update"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        UpdatetenantRequest body = {
  "username" : "alireza",
  "email" : "alireza1@gmail.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // UpdatetenantRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.updatetenant(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updatetenant");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        UpdatetenantRequest body = {
  "username" : "alireza",
  "email" : "alireza1@gmail.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // UpdatetenantRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.updatetenant(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updatetenant");
            e.printStackTrace();
        }
    }
}
UpdatetenantRequest *body = {
  "username" : "alireza",
  "email" : "alireza1@gmail.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update tenant
[apiInstance updatetenantWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "email" : "alireza1@gmail.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // {{UpdatetenantRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updatetenant(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamemanamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updatetenantExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new UpdatetenantRequest(); // UpdatetenantRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // Update tenant
                apiInstance.updatetenant(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updatetenant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "email" : "alireza1@gmail.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
}; // UpdatetenantRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->updatetenant($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updatetenant: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::UpdatetenantRequest->new(); # UpdatetenantRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->updatetenant(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->updatetenant: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "email" : "alireza1@gmail.com",
  "timeout" : 120,
  "confirm_email" : true,
  "confirm_phone" : false,
  "email_is_username" : false,
  "phone_is_username" : false
} # UpdatetenantRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # Update tenant
    api_instance.updatetenant(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->updatetenant: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ does not validate as username/ does not validate as email

Status: 404 - record not found


updateuser

update user

در صورت نیاز اگر مایل به ویرایش اطلاعات کاربری خود باشید، باید درخواستی با فرمت زیر ارسال کنید: ```` curl --location --request PUT 'https://api.apieco.ir/manam/api/v1/auth/users/update/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'manam_auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODQ5MDE2ODMsInJvbGUiOjUsInRlbmFudF91c2VybmFtZSI6ImpvaG5kb2UiLCJ0ZW5hbnRfaWQiOjAsInVzZXJfaWQiOjAsInVzZXJuYW1lIjoidGVzdHVzZXIifQ.FZN1UTNbZebdeTRBfLeOqsPWmIUsHbG48H5opbpG7tS-Szgv_okmdxBBot36fZcBztd8OgOhpBULs3nsGZ2-8FN7pEscNUw-A4frWvWSqBh73-4hJIaQsesCBznJanbbEUUTrV5RtFRDhkZv6ab4oKVoBggDvrYYBX-fQeKQzb9aFGxsu8cHBu2sn_nUCpfk21jHZgsUXBsz8ErCNl9wpjiUVWjayX9XCNr3C2VS0_SGUHu751yhraZTr9WbG55mr6GzNmjZQxTGNrc5BIT88y11lmO6SIL7FezvVIoAR-c-FH5_bSnNOAg_6vI3IXu9EEaNl7axPeZqSVPa5sinPw' \ --data-raw '{ "username": "testuser", "email": "newEmail@gmail.com", "phone": "091XXXXXXXX", "full_name": "testname" }' ```` در این درخواست ایمیل تغییر داده شد و نام کامل کاربر اضافه شد. نکته ای مهمی که وجود دارد این است که نمی‌توان نام کاربری یک کاربر را در ویرایش کاربر تغییر داد. پاسخ به شکل زیر است: ````   "message": {         "username": "testuser",         "email": "newEmail@gmail.com",         "phone": "091XXXXXXXX",         "full_name": "testname",         "role": 5,         "email_verify": 1,         "phone_verify": 1,         "tenant_id": 155     } ````


/v1/auth/users/update

Usage and SDK Samples

curl -X PUT "//v1/auth/users/update"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Updateuserrequest body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "phone" : "098123456"
}; // Updateuserrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.updateuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateuser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Updateuserrequest body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "phone" : "098123456"
}; // Updateuserrequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.updateuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateuser");
            e.printStackTrace();
        }
    }
}
Updateuserrequest *body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "phone" : "098123456"
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 
String *manamAuth = manamAuth_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update user
[apiInstance updateuserWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "phone" : "098123456"
}; // {{Updateuserrequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateuser(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecretmanamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateuserExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Updateuserrequest(); // Updateuserrequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // update user
                apiInstance.updateuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateuser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "phone" : "098123456"
}; // Updateuserrequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->updateuser($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateuser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Updateuserrequest->new(); # Updateuserrequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->updateuser(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateuser: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "email" : "alireza@gmail.com",
  "phone" : "098123456"
} # Updateuserrequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # update user
    api_instance.updateuser(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret, manamAuth)
except ApiException as e:
    print("Exception when calling DefaultApi->updateuser: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
manam_auth*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username/ not validate as username

Status: 403 - forbidden access error

Status: 404 - record not found/ user is not activated, please active the user first

Status: 500 - internal server error


validateuseremail

Validate user email

همانطور که گفته شد کاربر با توجه به تنظیمات قلمرو مربوط به خود باید تلفن و یا ایمیل و یا هر دو این ها را تایید کند تا حساب کاربری او فعال گردد. کد فعال سازی بعد از ثبت‌نام کاربر برای او ارسال می گردد. درخواست تایید ایمیل: ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/email/validate/' \ --header 'Content-Type: application/json' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --header 'tenant_username: alireza' \ --header 'apieco-key: n5Nq7ubqwwHi3buFK88iCCJpBAcgttSF' \ --data-raw '{ "username": "testuser", "code": "199455" }' ```` در صورت موفقیت‌آمیز بودن درخواست، پاسخ زیر برمی‌گردد: ```` "message": {   "manam_response": "testuser, user's email validated"  } ````


/v1/any/users/email/validate

Usage and SDK Samples

curl -X POST "//v1/any/users/email/validate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ValidateuseremailRequest body = {
  "username" : "alireza",
  "code" : 617615
}; // ValidateuseremailRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.validateuseremail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#validateuseremail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ValidateuseremailRequest body = {
  "username" : "alireza",
  "code" : 617615
}; // ValidateuseremailRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.validateuseremail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#validateuseremail");
            e.printStackTrace();
        }
    }
}
ValidateuseremailRequest *body = {
  "username" : "alireza",
  "code" : 617615
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Validate user email
[apiInstance validateuseremailWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "code" : 617615
}; // {{ValidateuseremailRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.validateuseremail(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class validateuseremailExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new ValidateuseremailRequest(); // ValidateuseremailRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Validate user email
                apiInstance.validateuseremail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.validateuseremail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "code" : 617615
}; // ValidateuseremailRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->validateuseremail($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->validateuseremail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::ValidateuseremailRequest->new(); # ValidateuseremailRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->validateuseremail(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->validateuseremail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "code" : 617615
} # ValidateuseremailRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Validate user email
    api_instance.validateuseremail(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->validateuseremail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid or short username/ does not validate as username/ invalid request body/

Status: 404 - record not found

Status: 500 - internal server error


validateuserphone

Validate user phone

همانطور که گفته شد کاربر با توجه به تنظیمات قلمرو مربوط به خود باید تلفن و یا ایمیل و یا هر دو این ها را تایید کند تا حساب کاربری او فعال گردد. کد فعال سازی بعد از ثبت‌نام کاربر برای او ارسال می گردد. در خواست تایید تلفن: ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/phone/validate/' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \ --header 'tenant_username: alireza' \ --header 'secret: YzY2ZDI1OTUtNmI2OC0xMWVhLWEzNzktMDI0MmFjMWYwMDAz' \ --data-raw '{ "username":"testuser", "code":"813069" }' ```` در صورت موفقیت‌آمیز بودن درخواست، پاسخ زیر برمی‌گردد: ```` "message": { "manam_response": "testuser, user's phone validated" } ````


/v1/any/users/phone/validate

Usage and SDK Samples

curl -X POST "//v1/any/users/phone/validate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ValidateuserphoneRequest body = {
  "username" : "alireza",
  "code" : 617615
}; // ValidateuserphoneRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.validateuserphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#validateuserphone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ValidateuserphoneRequest body = {
  "username" : "alireza",
  "code" : 617615
}; // ValidateuserphoneRequest | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.validateuserphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#validateuserphone");
            e.printStackTrace();
        }
    }
}
ValidateuserphoneRequest *body = {
  "username" : "alireza",
  "code" : 617615
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Validate user phone
[apiInstance validateuserphoneWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "alireza",
  "code" : 617615
}; // {{ValidateuserphoneRequest}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.validateuserphone(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class validateuserphoneExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new ValidateuserphoneRequest(); // ValidateuserphoneRequest | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // Validate user phone
                apiInstance.validateuserphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.validateuserphone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "alireza",
  "code" : 617615
}; // ValidateuserphoneRequest | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->validateuserphone($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->validateuserphone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::ValidateuserphoneRequest->new(); # ValidateuserphoneRequest | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->validateuserphone(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->validateuserphone: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "alireza",
  "code" : 617615
} # ValidateuserphoneRequest | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # Validate user phone
    api_instance.validateuserphone(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->validateuserphone: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid or short username/ does not validate as username/ invalid request body/

Status: 404 - record not found

Status: 500 - internal server error


verifyotpcode

verify otp code

با استفاده از کدی که در درخواست قبل به تلفن همراه تان ارسال شد می توانید وارد محیط کاربری خود شوید. ```` curl --location --request POST 'https://api.apieco.ir/manam/api/v1/any/users/otp/verify' \ --header 'Content-Type: application/json' \ --header 'apieco-key: XXXXXXXXXXXXXXX' \ --header 'tenant_username: testTenant' \ --header 'secret: NjdmODA0YWMtNjk1My0xMWVhLThjNmYtNTQ0MjQ5NWNlMTE4' \ --header 'Content-Type: text/plain' \ --data-raw '{ "username":"alireza", "code": "123456" }' ````


/v1/any/users/otp/verify

Usage and SDK Samples

curl -X POST "//v1/any/users/otp/verify"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        VerifyUserOTPCode body = {
  "username" : "username or phone or email",
  "code" : 123222
}; // VerifyUserOTPCode | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.verifyotpcode(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#verifyotpcode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        VerifyUserOTPCode body = {
  "username" : "username or phone or email",
  "code" : 123222
}; // VerifyUserOTPCode | 
        String apiecoKey = apiecoKey_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String secret = secret_example; // String | 
        try {
            apiInstance.verifyotpcode(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#verifyotpcode");
            e.printStackTrace();
        }
    }
}
VerifyUserOTPCode *body = {
  "username" : "username or phone or email",
  "code" : 123222
}; // 
String *apiecoKey = apiecoKey_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *secret = secret_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// verify otp code
[apiInstance verifyotpcodeWith:body
    apiecoKey:apiecoKey
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    secret:secret
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DefaultApi()
var body = {
  "username" : "username or phone or email",
  "code" : 123222
}; // {{VerifyUserOTPCode}} 
var apiecoKey = apiecoKey_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var secret = secret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.verifyotpcode(bodyapiecoKeyxConsumerIdxConsumerUsernametenantUsernamesecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class verifyotpcodeExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new VerifyUserOTPCode(); // VerifyUserOTPCode | 
            var apiecoKey = apiecoKey_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var secret = secret_example;  // String | 

            try
            {
                // verify otp code
                apiInstance.verifyotpcode(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.verifyotpcode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = {
  "username" : "username or phone or email",
  "code" : 123222
}; // VerifyUserOTPCode | 
$apiecoKey = apiecoKey_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$secret = secret_example; // String | 

try {
    $api_instance->verifyotpcode($body, $apiecoKey, $xConsumerId, $xConsumerUsername, $tenantUsername, $secret);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->verifyotpcode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::VerifyUserOTPCode->new(); # VerifyUserOTPCode | 
my $apiecoKey = apiecoKey_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $secret = secret_example; # String | 

eval { 
    $api_instance->verifyotpcode(body => $body, apiecoKey => $apiecoKey, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, secret => $secret);
};
if ($@) {
    warn "Exception when calling DefaultApi->verifyotpcode: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = {
  "username" : "username or phone or email",
  "code" : 123222
} # VerifyUserOTPCode | 
apiecoKey = apiecoKey_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
secret = secret_example # String | 

try: 
    # verify otp code
    api_instance.verifyotpcode(body, apiecoKey, xConsumerId, xConsumerUsername, tenantUsername, secret)
except ApiException as e:
    print("Exception when calling DefaultApi->verifyotpcode: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
secret*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 -

Status: 400 - missing required field/ invalid request body/ not validate as username/

Status: 401 - invalid user credential has been received

Status: 403 - user is not activated, please active the user first

Status: 404 - record not found/ your tenant has been deactivated, please contact your administrator


NOTRELATEDTOYOU

gettenantauditlogs

get tenant audit logs


/v1/auth/tenants/audit-logs

Usage and SDK Samples

curl -X GET "//v1/auth/tenants/audit-logs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NOTRELATEDTOYOUApi;

import java.io.File;
import java.util.*;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantauditlogs(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#gettenantauditlogs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NOTRELATEDTOYOUApi;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.gettenantauditlogs(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#gettenantauditlogs");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

NOTRELATEDTOYOUApi *apiInstance = [[NOTRELATEDTOYOUApi alloc] init];

// get tenant audit logs
[apiInstance gettenantauditlogsWith:apiecoKey
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.NOTRELATEDTOYOUApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.gettenantauditlogs(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class gettenantauditlogsExample
    {
        public void main()
        {

            var apiInstance = new NOTRELATEDTOYOUApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // get tenant audit logs
                apiInstance.gettenantauditlogs(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NOTRELATEDTOYOUApi.gettenantauditlogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNOTRELATEDTOYOUApi();
$apiecoKey = apiecoKey_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->gettenantauditlogs($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling NOTRELATEDTOYOUApi->gettenantauditlogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NOTRELATEDTOYOUApi;

my $api_instance = WWW::SwaggerClient::NOTRELATEDTOYOUApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->gettenantauditlogs(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling NOTRELATEDTOYOUApi->gettenantauditlogs: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NOTRELATEDTOYOUApi()
apiecoKey = apiecoKey_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # get tenant audit logs
    api_instance.gettenantauditlogs(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling NOTRELATEDTOYOUApi->gettenantauditlogs: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -

Status: 404 - your tenant has been deactivated, please contact your administrator


healthcheck

health check


/health-check

Usage and SDK Samples

curl -X GET "//health-check"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NOTRELATEDTOYOUApi;

import java.io.File;
import java.util.*;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.healthcheck(apiecoKey, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#healthcheck");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NOTRELATEDTOYOUApi;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.healthcheck(apiecoKey, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#healthcheck");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *manamAuth = manamAuth_example; // 

NOTRELATEDTOYOUApi *apiInstance = [[NOTRELATEDTOYOUApi alloc] init];

// health check
[apiInstance healthcheckWith:apiecoKey
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.NOTRELATEDTOYOUApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.healthcheck(apiecoKey, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class healthcheckExample
    {
        public void main()
        {

            var apiInstance = new NOTRELATEDTOYOUApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // health check
                apiInstance.healthcheck(apiecoKey, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NOTRELATEDTOYOUApi.healthcheck: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNOTRELATEDTOYOUApi();
$apiecoKey = apiecoKey_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->healthcheck($apiecoKey, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling NOTRELATEDTOYOUApi->healthcheck: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NOTRELATEDTOYOUApi;

my $api_instance = WWW::SwaggerClient::NOTRELATEDTOYOUApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->healthcheck(apiecoKey => $apiecoKey, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling NOTRELATEDTOYOUApi->healthcheck: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NOTRELATEDTOYOUApi()
apiecoKey = apiecoKey_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # health check
    api_instance.healthcheck(apiecoKey, manamAuth)
except ApiException as e:
    print("Exception when calling NOTRELATEDTOYOUApi->healthcheck: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
manam_auth*
String
Required

Responses

Status: 200 -


moitoringsendemail

moitoring send email


/monitoring/auth/internal/email

Usage and SDK Samples

curl -X GET "//monitoring/auth/internal/email?email="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NOTRELATEDTOYOUApi;

import java.io.File;
import java.util.*;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String email = email_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.moitoringsendemail(apiecoKey, email, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#moitoringsendemail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NOTRELATEDTOYOUApi;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String email = email_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.moitoringsendemail(apiecoKey, email, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#moitoringsendemail");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *email = email_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

NOTRELATEDTOYOUApi *apiInstance = [[NOTRELATEDTOYOUApi alloc] init];

// moitoring send email
[apiInstance moitoringsendemailWith:apiecoKey
    email:email
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.NOTRELATEDTOYOUApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var email = email_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.moitoringsendemail(apiecoKey, email, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class moitoringsendemailExample
    {
        public void main()
        {

            var apiInstance = new NOTRELATEDTOYOUApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var email = email_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // moitoring send email
                apiInstance.moitoringsendemail(apiecoKey, email, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NOTRELATEDTOYOUApi.moitoringsendemail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNOTRELATEDTOYOUApi();
$apiecoKey = apiecoKey_example; // String | 
$email = email_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->moitoringsendemail($apiecoKey, $email, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling NOTRELATEDTOYOUApi->moitoringsendemail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NOTRELATEDTOYOUApi;

my $api_instance = WWW::SwaggerClient::NOTRELATEDTOYOUApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $email = email_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->moitoringsendemail(apiecoKey => $apiecoKey, email => $email, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling NOTRELATEDTOYOUApi->moitoringsendemail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NOTRELATEDTOYOUApi()
apiecoKey = apiecoKey_example # String | 
email = email_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # moitoring send email
    api_instance.moitoringsendemail(apiecoKey, email, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling NOTRELATEDTOYOUApi->moitoringsendemail: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
Query parameters
Name Description
email*
String
Required

Responses

Status: 200 -

Status: 400 - invalid email received


monitoringsendsms

monitoring send sms


/monitoring/auth/internal/sms

Usage and SDK Samples

curl -X GET "//monitoring/auth/internal/sms?phone="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NOTRELATEDTOYOUApi;

import java.io.File;
import java.util.*;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String phone = phone_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.monitoringsendsms(apiecoKey, phone, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#monitoringsendsms");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NOTRELATEDTOYOUApi;

public class NOTRELATEDTOYOUApiExample {

    public static void main(String[] args) {
        NOTRELATEDTOYOUApi apiInstance = new NOTRELATEDTOYOUApi();
        String apiecoKey = apiecoKey_example; // String | 
        String phone = phone_example; // String | 
        String contentType = contentType_example; // String | 
        String xConsumerId = xConsumerId_example; // String | 
        String xConsumerUsername = xConsumerUsername_example; // String | 
        String tenantUsername = tenantUsername_example; // String | 
        String manamAuth = manamAuth_example; // String | 
        try {
            apiInstance.monitoringsendsms(apiecoKey, phone, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
        } catch (ApiException e) {
            System.err.println("Exception when calling NOTRELATEDTOYOUApi#monitoringsendsms");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *phone = phone_example; // 
String *contentType = contentType_example; // 
String *xConsumerId = xConsumerId_example; // 
String *xConsumerUsername = xConsumerUsername_example; // 
String *tenantUsername = tenantUsername_example; // 
String *manamAuth = manamAuth_example; // 

NOTRELATEDTOYOUApi *apiInstance = [[NOTRELATEDTOYOUApi alloc] init];

// monitoring send sms
[apiInstance monitoringsendsmsWith:apiecoKey
    phone:phone
    contentType:contentType
    xConsumerId:xConsumerId
    xConsumerUsername:xConsumerUsername
    tenantUsername:tenantUsername
    manamAuth:manamAuth
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.NOTRELATEDTOYOUApi()
var apiecoKey = apiecoKey_example; // {{String}} 
var phone = phone_example; // {{String}} 
var contentType = contentType_example; // {{String}} 
var xConsumerId = xConsumerId_example; // {{String}} 
var xConsumerUsername = xConsumerUsername_example; // {{String}} 
var tenantUsername = tenantUsername_example; // {{String}} 
var manamAuth = manamAuth_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.monitoringsendsms(apiecoKey, phone, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class monitoringsendsmsExample
    {
        public void main()
        {

            var apiInstance = new NOTRELATEDTOYOUApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var phone = phone_example;  // String | 
            var contentType = contentType_example;  // String | 
            var xConsumerId = xConsumerId_example;  // String | 
            var xConsumerUsername = xConsumerUsername_example;  // String | 
            var tenantUsername = tenantUsername_example;  // String | 
            var manamAuth = manamAuth_example;  // String | 

            try
            {
                // monitoring send sms
                apiInstance.monitoringsendsms(apiecoKey, phone, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NOTRELATEDTOYOUApi.monitoringsendsms: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNOTRELATEDTOYOUApi();
$apiecoKey = apiecoKey_example; // String | 
$phone = phone_example; // String | 
$contentType = contentType_example; // String | 
$xConsumerId = xConsumerId_example; // String | 
$xConsumerUsername = xConsumerUsername_example; // String | 
$tenantUsername = tenantUsername_example; // String | 
$manamAuth = manamAuth_example; // String | 

try {
    $api_instance->monitoringsendsms($apiecoKey, $phone, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
    echo 'Exception when calling NOTRELATEDTOYOUApi->monitoringsendsms: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NOTRELATEDTOYOUApi;

my $api_instance = WWW::SwaggerClient::NOTRELATEDTOYOUApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $phone = phone_example; # String | 
my $contentType = contentType_example; # String | 
my $xConsumerId = xConsumerId_example; # String | 
my $xConsumerUsername = xConsumerUsername_example; # String | 
my $tenantUsername = tenantUsername_example; # String | 
my $manamAuth = manamAuth_example; # String | 

eval { 
    $api_instance->monitoringsendsms(apiecoKey => $apiecoKey, phone => $phone, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
    warn "Exception when calling NOTRELATEDTOYOUApi->monitoringsendsms: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NOTRELATEDTOYOUApi()
apiecoKey = apiecoKey_example # String | 
phone = phone_example # String | 
contentType = contentType_example # String | 
xConsumerId = xConsumerId_example # String | 
xConsumerUsername = xConsumerUsername_example # String | 
tenantUsername = tenantUsername_example # String | 
manamAuth = manamAuth_example # String | 

try: 
    # monitoring send sms
    api_instance.monitoringsendsms(apiecoKey, phone, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
    print("Exception when calling NOTRELATEDTOYOUApi->monitoringsendsms: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Content-Type*
String
Required
x-consumer-id*
String
Required
x-consumer-username*
String
Required
tenant_username*
String
Required
manam_auth*
String
Required
Query parameters
Name Description
phone*
String
Required

Responses

Status: 200 -

Status: 400 - invalid phone received