AproAPI

Hirdetesek

hirdetesKepekPost

Képek feltöltése hirdetéshez

Több kép csatolása egyszerre a felhasználó által feladott saját hirdetéshez


/hirdetesek/{id}/kepek

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://www.aprohirdetes.com/api/v1/felhasznalo/hirdetesek/{id}/kepek"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HirdetesekApi;

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

public class HirdetesekApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        HirdetesekApi apiInstance = new HirdetesekApi();
        String id = id_example; // String | Hirdetés azonosító
        File kep1 = /path/to/file.txt; // File | A kép file
        try {
            inline_response_201 result = apiInstance.hirdetesKepekPost(id, kep1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HirdetesekApi#hirdetesKepekPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HirdetesekApi;

public class HirdetesekApiExample {

    public static void main(String[] args) {
        HirdetesekApi apiInstance = new HirdetesekApi();
        String id = id_example; // String | Hirdetés azonosító
        File kep1 = /path/to/file.txt; // File | A kép file
        try {
            inline_response_201 result = apiInstance.hirdetesKepekPost(id, kep1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HirdetesekApi#hirdetesKepekPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // Hirdetés azonosító
File *kep1 = /path/to/file.txt; // A kép file (optional)

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

// Képek feltöltése hirdetéshez
[apiInstance hirdetesKepekPostWith:id
    kep1:kep1
              completionHandler: ^(inline_response_201 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AproApi = require('apro_api');
var defaultClient = AproApi.ApiClient.instance;

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

var api = new AproApi.HirdetesekApi()

var id = id_example; // {String} Hirdetés azonosító

var opts = { 
  'kep1': /path/to/file.txt // {File} A kép file
};

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

namespace Example
{
    public class hirdetesKepekPostExample
    {
        public void main()
        {
            
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new HirdetesekApi();
            var id = id_example;  // String | Hirdetés azonosító
            var kep1 = new File(); // File | A kép file (optional) 

            try
            {
                // Képek feltöltése hirdetéshez
                inline_response_201 result = apiInstance.hirdetesKepekPost(id, kep1);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HirdetesekApi.hirdetesKepekPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\HirdetesekApi();
$id = id_example; // String | Hirdetés azonosító
$kep1 = /path/to/file.txt; // File | A kép file

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::HirdetesekApi->new();
my $id = id_example; # String | Hirdetés azonosító
my $kep1 = /path/to/file.txt; # File | A kép file

eval { 
    my $result = $api_instance->hirdetesKepekPost(id => $id, kep1 => $kep1);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HirdetesekApi->hirdetesKepekPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.HirdetesekApi()
id = id_example # String | Hirdetés azonosító
kep1 = /path/to/file.txt # File | A kép file (optional)

try: 
    # Képek feltöltése hirdetéshez
    api_response = api_instance.hirdetes_kepek_post(id, kep1=kep1)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HirdetesekApi->hirdetesKepekPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Hirdetés azonosító
Required
Form parameters
Name Description
kep1
File
A kép file

Responses

Status: 201 - A képeket sikeresen hozzáadtam a Hirdeteshez

{success=true, message=, data=[hirdetes/jhaskjdhkhdsa6sa, hirdetes/mnc73ekak3foli3]}

Status: 400 - Bad Request. Hiba a Kep adataiban

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


hirdetesekGet

Saját hirdetések lekérdezése

A felhasználó által feladott saját hirdetések listázása


/hirdetesek

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://www.aprohirdetes.com/api/v1/felhasznalo/hirdetesek"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HirdetesekApi;

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

public class HirdetesekApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        HirdetesekApi apiInstance = new HirdetesekApi();
        try {
            inline_response_200 result = apiInstance.hirdetesekGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HirdetesekApi#hirdetesekGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HirdetesekApi;

public class HirdetesekApiExample {

    public static void main(String[] args) {
        HirdetesekApi apiInstance = new HirdetesekApi();
        try {
            inline_response_200 result = apiInstance.hirdetesekGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HirdetesekApi#hirdetesekGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

// Saját hirdetések lekérdezése
[apiInstance hirdetesekGetWithCompletionHandler: 
              ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AproApi = require('apro_api');
var defaultClient = AproApi.ApiClient.instance;

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

var api = new AproApi.HirdetesekApi()

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

namespace Example
{
    public class hirdetesekGetExample
    {
        public void main()
        {
            
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new HirdetesekApi();

            try
            {
                // Saját hirdetések lekérdezése
                inline_response_200 result = apiInstance.hirdetesekGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HirdetesekApi.hirdetesekGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

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

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

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

eval { 
    my $result = $api_instance->hirdetesekGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HirdetesekApi->hirdetesekGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.HirdetesekApi()

try: 
    # Saját hirdetések lekérdezése
    api_response = api_instance.hirdetesek_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HirdetesekApi->hirdetesekGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


hirdetesekPost

Új Hirdetés feladása

Uj hirdetes feladasa


/hirdetesek

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://www.aprohirdetes.com/api/v1/felhasznalo/hirdetesek"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HirdetesekApi;

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

public class HirdetesekApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        HirdetesekApi apiInstance = new HirdetesekApi();
        Hirdetes hirdetes = ; // Hirdetes | Hirdetés adatai
        try {
            Hirdetes result = apiInstance.hirdetesekPost(hirdetes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HirdetesekApi#hirdetesekPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HirdetesekApi;

public class HirdetesekApiExample {

    public static void main(String[] args) {
        HirdetesekApi apiInstance = new HirdetesekApi();
        Hirdetes hirdetes = ; // Hirdetes | Hirdetés adatai
        try {
            Hirdetes result = apiInstance.hirdetesekPost(hirdetes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HirdetesekApi#hirdetesekPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Hirdetes *hirdetes = ; // Hirdetés adatai (optional)

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

// Új Hirdetés feladása
[apiInstance hirdetesekPostWith:hirdetes
              completionHandler: ^(Hirdetes output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AproApi = require('apro_api');
var defaultClient = AproApi.ApiClient.instance;

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

var api = new AproApi.HirdetesekApi()

var opts = { 
  'hirdetes':  // {Hirdetes} Hirdetés adatai
};

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

namespace Example
{
    public class hirdetesekPostExample
    {
        public void main()
        {
            
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new HirdetesekApi();
            var hirdetes = new Hirdetes(); // Hirdetes | Hirdetés adatai (optional) 

            try
            {
                // Új Hirdetés feladása
                Hirdetes result = apiInstance.hirdetesekPost(hirdetes);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HirdetesekApi.hirdetesekPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\HirdetesekApi();
$hirdetes = ; // Hirdetes | Hirdetés adatai

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::HirdetesekApi->new();
my $hirdetes = WWW::SwaggerClient::Object::Hirdetes->new(); # Hirdetes | Hirdetés adatai

eval { 
    my $result = $api_instance->hirdetesekPost(hirdetes => $hirdetes);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HirdetesekApi->hirdetesekPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.HirdetesekApi()
hirdetes =  # Hirdetes | Hirdetés adatai (optional)

try: 
    # Új Hirdetés feladása
    api_response = api_instance.hirdetesek_post(hirdetes=hirdetes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HirdetesekApi->hirdetesekPost: %s\n" % e)

Parameters

Body parameters
Name Description
hirdetes

Responses

Status: 201 - Created

Status: 400 - Bad Request. Hiba a Hirdetes adataiban

Status: 401 - Unauthorized

Status: 500 - Internal Server Error