Lahzenegar API

Events

eventsSearchGet

Filter events.


/events/search

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/events/search?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        String query = query_example; // String | 
        try {
            array[EVENT OBJECT] result = apiInstance.eventsSearchGet(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#eventsSearchGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        String query = query_example; // String | 
        try {
            array[EVENT OBJECT] result = apiInstance.eventsSearchGet(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#eventsSearchGet");
            e.printStackTrace();
        }
    }
}
String *query = query_example; //  (optional)

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

[apiInstance eventsSearchGetWith:query
              completionHandler: ^(array[EVENT OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.EventsApi()

var opts = { 
  'query': query_example // {String} 
};

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

namespace Example
{
    public class eventsSearchGetExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var query = query_example;  // String |  (optional) 

            try
            {
                array[EVENT OBJECT] result = apiInstance.eventsSearchGet(query);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.eventsSearchGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$query = query_example; // String | 

try {
    $result = $api_instance->eventsSearchGet($query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsApi->eventsSearchGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $query = query_example; # String | 

eval { 
    my $result = $api_instance->eventsSearchGet(query => $query);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventsApi->eventsSearchGet: $@\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.EventsApi()
query = query_example # String |  (optional)

try: 
    api_response = api_instance.events_search_get(query=query)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->eventsSearchGet: %s\n" % e)

Parameters

Query parameters
Name Description
query
String

Responses

Status: 200 - Status 200


eventsSuggestionsGet

Get list of suggested events.


/events/suggestions

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/events/suggestions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        try {
            array[EVENT OBJECT] result = apiInstance.eventsSuggestionsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#eventsSuggestionsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        try {
            array[EVENT OBJECT] result = apiInstance.eventsSuggestionsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#eventsSuggestionsGet");
            e.printStackTrace();
        }
    }
}

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

[apiInstance eventsSuggestionsGetWithCompletionHandler: 
              ^(array[EVENT OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.EventsApi()

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

namespace Example
{
    public class eventsSuggestionsGetExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();

            try
            {
                array[EVENT OBJECT] result = apiInstance.eventsSuggestionsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.eventsSuggestionsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();

try {
    $result = $api_instance->eventsSuggestionsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsApi->eventsSuggestionsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;

my $api_instance = WWW::SwaggerClient::EventsApi->new();

eval { 
    my $result = $api_instance->eventsSuggestionsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventsApi->eventsSuggestionsGet: $@\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.EventsApi()

try: 
    api_response = api_instance.events_suggestions_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->eventsSuggestionsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Status 200


eventseventIdGet

Get give event’s info.


/events/${event_id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/events/${event_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        String eventId = eventId_example; // String | 
        try {
            EVENT OBJECT result = apiInstance.eventseventIdGet(eventId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#eventseventIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        String eventId = eventId_example; // String | 
        try {
            EVENT OBJECT result = apiInstance.eventseventIdGet(eventId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#eventseventIdGet");
            e.printStackTrace();
        }
    }
}
String *eventId = eventId_example; // 

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

[apiInstance eventseventIdGetWith:eventId
              completionHandler: ^(EVENT OBJECT output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.EventsApi()

var eventId = eventId_example; // {String} 


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

namespace Example
{
    public class eventseventIdGetExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var eventId = eventId_example;  // String | 

            try
            {
                EVENT OBJECT result = apiInstance.eventseventIdGet(eventId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.eventseventIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$eventId = eventId_example; // String | 

try {
    $result = $api_instance->eventseventIdGet($eventId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsApi->eventseventIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $eventId = eventId_example; # String | 

eval { 
    my $result = $api_instance->eventseventIdGet(eventId => $eventId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventsApi->eventseventIdGet: $@\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.EventsApi()
eventId = eventId_example # String | 

try: 
    api_response = api_instance.eventsevent_id_get(eventId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->eventseventIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
event_id*
String
Required

Responses

Status: 200 - Status 200


Tags

tagsGet


/tags

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagsApi;

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

public class TagsApiExample {

    public static void main(String[] args) {
        
        TagsApi apiInstance = new TagsApi();
        try {
            array[TAG OBJECT] result = apiInstance.tagsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tagsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagsApi;

public class TagsApiExample {

    public static void main(String[] args) {
        TagsApi apiInstance = new TagsApi();
        try {
            array[TAG OBJECT] result = apiInstance.tagsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tagsGet");
            e.printStackTrace();
        }
    }
}

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

[apiInstance tagsGetWithCompletionHandler: 
              ^(array[TAG OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.TagsApi()

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

namespace Example
{
    public class tagsGetExample
    {
        public void main()
        {
            
            var apiInstance = new TagsApi();

            try
            {
                array[TAG OBJECT] result = apiInstance.tagsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagsApi.tagsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TagsApi();

try {
    $result = $api_instance->tagsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagsApi->tagsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagsApi;

my $api_instance = WWW::SwaggerClient::TagsApi->new();

eval { 
    my $result = $api_instance->tagsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagsApi->tagsGet: $@\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.TagsApi()

try: 
    api_response = api_instance.tags_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagsApi->tagsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Status 200


tagsTagIdEventsGet

Get events list of a tag.


/tags/{tag_id}/events

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/tags/{tag_id}/events"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagsApi;

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

public class TagsApiExample {

    public static void main(String[] args) {
        
        TagsApi apiInstance = new TagsApi();
        Integer tagId = 56; // Integer | 
        try {
            array[EVENT OBJECT] result = apiInstance.tagsTagIdEventsGet(tagId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tagsTagIdEventsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagsApi;

public class TagsApiExample {

    public static void main(String[] args) {
        TagsApi apiInstance = new TagsApi();
        Integer tagId = 56; // Integer | 
        try {
            array[EVENT OBJECT] result = apiInstance.tagsTagIdEventsGet(tagId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tagsTagIdEventsGet");
            e.printStackTrace();
        }
    }
}
Integer *tagId = 56; // 

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

[apiInstance tagsTagIdEventsGetWith:tagId
              completionHandler: ^(array[EVENT OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.TagsApi()

var tagId = 56; // {Integer} 


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

namespace Example
{
    public class tagsTagIdEventsGetExample
    {
        public void main()
        {
            
            var apiInstance = new TagsApi();
            var tagId = 56;  // Integer | 

            try
            {
                array[EVENT OBJECT] result = apiInstance.tagsTagIdEventsGet(tagId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagsApi.tagsTagIdEventsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TagsApi();
$tagId = 56; // Integer | 

try {
    $result = $api_instance->tagsTagIdEventsGet($tagId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagsApi->tagsTagIdEventsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagsApi;

my $api_instance = WWW::SwaggerClient::TagsApi->new();
my $tagId = 56; # Integer | 

eval { 
    my $result = $api_instance->tagsTagIdEventsGet(tagId => $tagId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagsApi->tagsTagIdEventsGet: $@\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.TagsApi()
tagId = 56 # Integer | 

try: 
    api_response = api_instance.tags_tag_id_events_get(tagId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagsApi->tagsTagIdEventsGet: %s\n" % e)

Parameters

Path parameters
Name Description
tag_id*
Integer
Required

Responses

Status: 200 - Status 200


Users

usersGet

Get list of suggested events.


/users

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        
        UsersApi apiInstance = new UsersApi();
        try {
            array[COMPACT USER OBJECT] result = apiInstance.usersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        try {
            array[COMPACT USER OBJECT] result = apiInstance.usersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersGet");
            e.printStackTrace();
        }
    }
}

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

[apiInstance usersGetWithCompletionHandler: 
              ^(array[COMPACT USER OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.UsersApi()

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

namespace Example
{
    public class usersGetExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();

            try
            {
                array[COMPACT USER OBJECT] result = apiInstance.usersGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.usersGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();

try {
    $result = $api_instance->usersGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsersApi;

my $api_instance = WWW::SwaggerClient::UsersApi->new();

eval { 
    my $result = $api_instance->usersGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersGet: $@\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.UsersApi()

try: 
    api_response = api_instance.users_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersGet: %s\n" % e)

Parameters

Responses

Status: 200 - Status 200


usersSearchGet

Filter users.


/users/search

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/users/search?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        
        UsersApi apiInstance = new UsersApi();
        String query = query_example; // String | 
        try {
            array[COMPACT USER OBJECT] result = apiInstance.usersSearchGet(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersSearchGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String query = query_example; // String | 
        try {
            array[COMPACT USER OBJECT] result = apiInstance.usersSearchGet(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersSearchGet");
            e.printStackTrace();
        }
    }
}
String *query = query_example; // 

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

[apiInstance usersSearchGetWith:query
              completionHandler: ^(array[COMPACT USER OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.UsersApi()

var query = query_example; // {String} 


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

namespace Example
{
    public class usersSearchGetExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var query = query_example;  // String | 

            try
            {
                array[COMPACT USER OBJECT] result = apiInstance.usersSearchGet(query);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.usersSearchGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$query = query_example; // String | 

try {
    $result = $api_instance->usersSearchGet($query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersSearchGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsersApi;

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $query = query_example; # String | 

eval { 
    my $result = $api_instance->usersSearchGet(query => $query);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersSearchGet: $@\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.UsersApi()
query = query_example # String | 

try: 
    api_response = api_instance.users_search_get(query)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersSearchGet: %s\n" % e)

Parameters

Query parameters
Name Description
query*
String
Required

Responses

Status: 200 - Status 200

Status: 404 - Status 404


usersusernameEventsGet

Get user's events list.


/users/@{username}/events

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/users/@{username}/events"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            array[EVENT OBJECT] result = apiInstance.usersusernameEventsGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameEventsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            array[EVENT OBJECT] result = apiInstance.usersusernameEventsGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameEventsGet");
            e.printStackTrace();
        }
    }
}
String *username = username_example; // 

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

[apiInstance usersusernameEventsGetWith:username
              completionHandler: ^(array[EVENT OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.UsersApi()

var username = username_example; // {String} 


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

namespace Example
{
    public class usersusernameEventsGetExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var username = username_example;  // String | 

            try
            {
                array[EVENT OBJECT] result = apiInstance.usersusernameEventsGet(username);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.usersusernameEventsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$username = username_example; // String | 

try {
    $result = $api_instance->usersusernameEventsGet($username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersusernameEventsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsersApi;

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $username = username_example; # String | 

eval { 
    my $result = $api_instance->usersusernameEventsGet(username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersusernameEventsGet: $@\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.UsersApi()
username = username_example # String | 

try: 
    api_response = api_instance.usersusername_events_get(username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersusernameEventsGet: %s\n" % e)

Parameters

Path parameters
Name Description
username*
String
Required

Responses

Status: 200 - Status 200


usersusernameFollowersGet

Get user's followers list.


/users/@{username}/followers

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/users/@{username}/followers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            array[USER OBJECT] result = apiInstance.usersusernameFollowersGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameFollowersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            array[USER OBJECT] result = apiInstance.usersusernameFollowersGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameFollowersGet");
            e.printStackTrace();
        }
    }
}
String *username = username_example; // 

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

[apiInstance usersusernameFollowersGetWith:username
              completionHandler: ^(array[USER OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.UsersApi()

var username = username_example; // {String} 


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

namespace Example
{
    public class usersusernameFollowersGetExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var username = username_example;  // String | 

            try
            {
                array[USER OBJECT] result = apiInstance.usersusernameFollowersGet(username);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.usersusernameFollowersGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$username = username_example; // String | 

try {
    $result = $api_instance->usersusernameFollowersGet($username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersusernameFollowersGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsersApi;

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $username = username_example; # String | 

eval { 
    my $result = $api_instance->usersusernameFollowersGet(username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersusernameFollowersGet: $@\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.UsersApi()
username = username_example # String | 

try: 
    api_response = api_instance.usersusername_followers_get(username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersusernameFollowersGet: %s\n" % e)

Parameters

Path parameters
Name Description
username*
String
Required

Responses

Status: 200 - Status 200


usersusernameFollowingGet

Get user's following list.


/users/@{username}/following

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/users/@{username}/following"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            array[COMPACT USER OBJECT] result = apiInstance.usersusernameFollowingGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameFollowingGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            array[COMPACT USER OBJECT] result = apiInstance.usersusernameFollowingGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameFollowingGet");
            e.printStackTrace();
        }
    }
}
String *username = username_example; // 

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

[apiInstance usersusernameFollowingGetWith:username
              completionHandler: ^(array[COMPACT USER OBJECT] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.UsersApi()

var username = username_example; // {String} 


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

namespace Example
{
    public class usersusernameFollowingGetExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var username = username_example;  // String | 

            try
            {
                array[COMPACT USER OBJECT] result = apiInstance.usersusernameFollowingGet(username);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.usersusernameFollowingGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$username = username_example; // String | 

try {
    $result = $api_instance->usersusernameFollowingGet($username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersusernameFollowingGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsersApi;

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $username = username_example; # String | 

eval { 
    my $result = $api_instance->usersusernameFollowingGet(username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersusernameFollowingGet: $@\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.UsersApi()
username = username_example # String | 

try: 
    api_response = api_instance.usersusername_following_get(username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersusernameFollowingGet: %s\n" % e)

Parameters

Path parameters
Name Description
username*
String
Required

Responses

Status: 200 - Status 200


usersusernameGet

Get given user’s profile.


/users/@{username}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/lahzenegar/v3/users/@{username}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            USER OBJECT result = apiInstance.usersusernameGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String username = username_example; // String | 
        try {
            USER OBJECT result = apiInstance.usersusernameGet(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersusernameGet");
            e.printStackTrace();
        }
    }
}
String *username = username_example; // 

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

[apiInstance usersusernameGetWith:username
              completionHandler: ^(USER OBJECT output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LahzenegarApi = require('lahzenegar_api');

var api = new LahzenegarApi.UsersApi()

var username = username_example; // {String} 


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

namespace Example
{
    public class usersusernameGetExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var username = username_example;  // String | 

            try
            {
                USER OBJECT result = apiInstance.usersusernameGet(username);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.usersusernameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$username = username_example; // String | 

try {
    $result = $api_instance->usersusernameGet($username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersusernameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsersApi;

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $username = username_example; # String | 

eval { 
    my $result = $api_instance->usersusernameGet(username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersusernameGet: $@\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.UsersApi()
username = username_example # String | 

try: 
    api_response = api_instance.usersusername_get(username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersusernameGet: %s\n" % e)

Parameters

Path parameters
Name Description
username*
String
Required

Responses

Status: 200 - Status 200