AnyEx 接口文档

addAdminComment

以管理员身份添加一个评论


/comment/admin

Usage and SDK Samples

curl -X POST -H "authorization: [[apiKey]]" "http://localhost/comment/admin"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Comment comment = ; // Comment | 
        try {
            Comment result = apiInstance.addAdminComment(comment);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addAdminComment");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

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

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Comment *comment = ; // 

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

// 以管理员身份添加一个评论
[apiInstance addAdminCommentWith:comment
              completionHandler: ^(Comment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var comment = ; // {Comment} 

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

namespace Example
{
    public class addAdminCommentExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var comment = new Comment(); // Comment | 

            try
            {
                // 以管理员身份添加一个评论
                Comment result = apiInstance.addAdminComment(comment);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addAdminComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$comment = ; // Comment | 

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $comment = WWW::OPenAPIClient::Object::Comment->new(); # Comment | 

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
comment =  # Comment | 

try: 
    # 以管理员身份添加一个评论
    api_response = api_instance.add_admin_comment(comment)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addAdminComment: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let comment = ; // Comment

    let mut context = DefaultApi::Context::default();
    let result = client.addAdminComment(comment, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
comment *

评论

Responses


addArticle

添加一个文章


/article/admin

Usage and SDK Samples

curl -X POST -H "authorization: [[apiKey]]" "http://localhost/article/admin"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Article article = ; // Article | 
        try {
            Article result = apiInstance.addArticle(article);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addArticle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

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

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Article *article = ; // 

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

// 添加一个文章
[apiInstance addArticleWith:article
              completionHandler: ^(Article output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var article = ; // {Article} 

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

namespace Example
{
    public class addArticleExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var article = new Article(); // Article | 

            try
            {
                // 添加一个文章
                Article result = apiInstance.addArticle(article);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addArticle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$article = ; // Article | 

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $article = WWW::OPenAPIClient::Object::Article->new(); # Article | 

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
article =  # Article | 

try: 
    # 添加一个文章
    api_response = api_instance.add_article(article)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addArticle: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let article = ; // Article

    let mut context = DefaultApi::Context::default();
    let result = client.addArticle(article, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
article *

文章

Responses


addCategory

添加一个类别


/category/admin

Usage and SDK Samples

curl -X POST -H "authorization: [[apiKey]]" "http://localhost/category/admin"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Category category = ; // Category | 
        try {
            Category result = apiInstance.addCategory(category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addCategory");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

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

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Category *category = ; // 

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

// 添加一个类别
[apiInstance addCategoryWith:category
              completionHandler: ^(Category output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var category = ; // {Category} 

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

namespace Example
{
    public class addCategoryExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var category = new Category(); // Category | 

            try
            {
                // 添加一个类别
                Category result = apiInstance.addCategory(category);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addCategory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$category = ; // Category | 

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $category = WWW::OPenAPIClient::Object::Category->new(); # Category | 

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
category =  # Category | 

try: 
    # 添加一个类别
    api_response = api_instance.add_category(category)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addCategory: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let category = ; // Category

    let mut context = DefaultApi::Context::default();
    let result = client.addCategory(category, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
category *

类别

Responses


addComment

添加一个评论


/comment/add

Usage and SDK Samples

curl -X POST "http://localhost/comment/add"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Comment comment = ; // Comment | 
        try {
            Comment result = apiInstance.addComment(comment);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addComment");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Comment comment = ; // Comment | 
        try {
            Comment result = apiInstance.addComment(comment);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addComment");
            e.printStackTrace();
        }
    }
}
Comment *comment = ; // 

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

// 添加一个评论
[apiInstance addCommentWith:comment
              completionHandler: ^(Comment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var comment = ; // {Comment} 

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

namespace Example
{
    public class addCommentExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var comment = new Comment(); // Comment | 

            try
            {
                // 添加一个评论
                Comment result = apiInstance.addComment(comment);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$comment = ; // Comment | 

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $comment = WWW::OPenAPIClient::Object::Comment->new(); # Comment | 

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
comment =  # Comment | 

try: 
    # 添加一个评论
    api_response = api_instance.add_comment(comment)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addComment: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let comment = ; // Comment

    let mut context = DefaultApi::Context::default();
    let result = client.addComment(comment, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
comment *

评论

Responses



addTag

添加一个标签


/tag/admin

Usage and SDK Samples

curl -X POST -H "authorization: [[apiKey]]" "http://localhost/tag/admin"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Tag tag = ; // Tag | 
        try {
            Tag result = apiInstance.addTag(tag);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addTag");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

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

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Tag *tag = ; // 

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

// 添加一个标签
[apiInstance addTagWith:tag
              completionHandler: ^(Tag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var tag = ; // {Tag} 

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

namespace Example
{
    public class addTagExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var tag = new Tag(); // Tag | 

            try
            {
                // 添加一个标签
                Tag result = apiInstance.addTag(tag);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tag = ; // Tag | 

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $tag = WWW::OPenAPIClient::Object::Tag->new(); # Tag | 

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
tag =  # Tag | 

try: 
    # 添加一个标签
    api_response = api_instance.add_tag(tag)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addTag: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let tag = ; // Tag

    let mut context = DefaultApi::Context::default();
    let result = client.addTag(tag, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
tag *

标签

Responses


addTweet

添加一个推文


/tweet/admin

Usage and SDK Samples

curl -X POST -H "authorization: [[apiKey]]" "http://localhost/tweet/admin"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Tweet tweet = ; // Tweet | 
        try {
            Tweet result = apiInstance.addTweet(tweet);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addTweet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

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

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Tweet *tweet = ; // 

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

// 添加一个推文
[apiInstance addTweetWith:tweet
              completionHandler: ^(Tweet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var tweet = ; // {Tweet} 

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

namespace Example
{
    public class addTweetExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var tweet = new Tweet(); // Tweet | 

            try
            {
                // 添加一个推文
                Tweet result = apiInstance.addTweet(tweet);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addTweet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tweet = ; // Tweet | 

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $tweet = WWW::OPenAPIClient::Object::Tweet->new(); # Tweet | 

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
tweet =  # Tweet | 

try: 
    # 添加一个推文
    api_response = api_instance.add_tweet(tweet)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addTweet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let tweet = ; // Tweet

    let mut context = DefaultApi::Context::default();
    let result = client.addTweet(tweet, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
tweet *

推文

Responses


cancelTopArticle

取消文章置顶


/article/admin/top/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/article/admin/top/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章的 ID
        try {
            Article result = apiInstance.cancelTopArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopArticle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章的 ID
        try {
            Article result = apiInstance.cancelTopArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopArticle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 文章的 ID (default to null)

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

// 取消文章置顶
[apiInstance cancelTopArticleWith:id
              completionHandler: ^(Article output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 文章的 ID

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

namespace Example
{
    public class cancelTopArticleExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 文章的 ID (default to null)

            try
            {
                // 取消文章置顶
                Article result = apiInstance.cancelTopArticle(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.cancelTopArticle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 文章的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 文章的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 文章的 ID (default to null)

try: 
    # 取消文章置顶
    api_response = api_instance.cancel_top_article(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->cancelTopArticle: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.cancelTopArticle(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
文章的 ID
Required

Responses


cancelTopCategory

取消类别置顶


/category/admin/top/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/category/admin/top/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 类别的 ID
        try {
            Category result = apiInstance.cancelTopCategory(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopCategory");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 类别的 ID
        try {
            Category result = apiInstance.cancelTopCategory(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopCategory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 类别的 ID (default to null)

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

// 取消类别置顶
[apiInstance cancelTopCategoryWith:id
              completionHandler: ^(Category output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 类别的 ID

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

namespace Example
{
    public class cancelTopCategoryExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 类别的 ID (default to null)

            try
            {
                // 取消类别置顶
                Category result = apiInstance.cancelTopCategory(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.cancelTopCategory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 类别的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 类别的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 类别的 ID (default to null)

try: 
    # 取消类别置顶
    api_response = api_instance.cancel_top_category(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->cancelTopCategory: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.cancelTopCategory(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
类别的 ID
Required

Responses


cancelTopComment

取消评论置顶


/comment/admin/top/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/comment/admin/top/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 评论的 ID
        try {
            Comment result = apiInstance.cancelTopComment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopComment");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 评论的 ID
        try {
            Comment result = apiInstance.cancelTopComment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 评论的 ID (default to null)

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

// 取消评论置顶
[apiInstance cancelTopCommentWith:id
              completionHandler: ^(Comment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 评论的 ID

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

namespace Example
{
    public class cancelTopCommentExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 评论的 ID (default to null)

            try
            {
                // 取消评论置顶
                Comment result = apiInstance.cancelTopComment(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.cancelTopComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 评论的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 评论的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 评论的 ID (default to null)

try: 
    # 取消评论置顶
    api_response = api_instance.cancel_top_comment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->cancelTopComment: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.cancelTopComment(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
评论的 ID
Required

Responses



cancelTopTag

取消标签置顶


/tag/admin/top/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/tag/admin/top/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 标签的 ID
        try {
            Tag result = apiInstance.cancelTopTag(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopTag");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 标签的 ID
        try {
            Tag result = apiInstance.cancelTopTag(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopTag");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 标签的 ID (default to null)

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

// 取消标签置顶
[apiInstance cancelTopTagWith:id
              completionHandler: ^(Tag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 标签的 ID

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

namespace Example
{
    public class cancelTopTagExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 标签的 ID (default to null)

            try
            {
                // 取消标签置顶
                Tag result = apiInstance.cancelTopTag(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.cancelTopTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 标签的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 标签的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 标签的 ID (default to null)

try: 
    # 取消标签置顶
    api_response = api_instance.cancel_top_tag(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->cancelTopTag: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.cancelTopTag(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
标签的 ID
Required

Responses


cancelTopTweet

取消推文置顶


/tweet/admin/top/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/tweet/admin/top/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 推文的 ID
        try {
            Tweet result = apiInstance.cancelTopTweet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopTweet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 推文的 ID
        try {
            Tweet result = apiInstance.cancelTopTweet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cancelTopTweet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 推文的 ID (default to null)

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

// 取消推文置顶
[apiInstance cancelTopTweetWith:id
              completionHandler: ^(Tweet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 推文的 ID

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

namespace Example
{
    public class cancelTopTweetExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 推文的 ID (default to null)

            try
            {
                // 取消推文置顶
                Tweet result = apiInstance.cancelTopTweet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.cancelTopTweet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 推文的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 推文的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 推文的 ID (default to null)

try: 
    # 取消推文置顶
    api_response = api_instance.cancel_top_tweet(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->cancelTopTweet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.cancelTopTweet(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
推文的 ID
Required

Responses


deleteArticle

删除一个文章


/article/admin/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/article/admin/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章的 ID
        try {
            Article result = apiInstance.deleteArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteArticle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章的 ID
        try {
            Article result = apiInstance.deleteArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteArticle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 文章的 ID (default to null)

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

// 删除一个文章
[apiInstance deleteArticleWith:id
              completionHandler: ^(Article output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 文章的 ID

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

namespace Example
{
    public class deleteArticleExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 文章的 ID (default to null)

            try
            {
                // 删除一个文章
                Article result = apiInstance.deleteArticle(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteArticle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 文章的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 文章的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 文章的 ID (default to null)

try: 
    # 删除一个文章
    api_response = api_instance.delete_article(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteArticle: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.deleteArticle(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
文章的 ID
Required

Responses


deleteCategory

删除一个类别


/category/admin/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/category/admin/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 类别的 ID
        try {
            Category result = apiInstance.deleteCategory(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteCategory");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 类别的 ID
        try {
            Category result = apiInstance.deleteCategory(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteCategory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 类别的 ID (default to null)

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

// 删除一个类别
[apiInstance deleteCategoryWith:id
              completionHandler: ^(Category output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 类别的 ID

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

namespace Example
{
    public class deleteCategoryExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 类别的 ID (default to null)

            try
            {
                // 删除一个类别
                Category result = apiInstance.deleteCategory(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteCategory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 类别的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 类别的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 类别的 ID (default to null)

try: 
    # 删除一个类别
    api_response = api_instance.delete_category(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteCategory: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.deleteCategory(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
类别的 ID
Required

Responses


deleteComment

删除一个评论


/comment/admin/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/comment/admin/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 评论的 ID
        try {
            Comment result = apiInstance.deleteComment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteComment");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 评论的 ID
        try {
            Comment result = apiInstance.deleteComment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 评论的 ID (default to null)

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

// 删除一个评论
[apiInstance deleteCommentWith:id
              completionHandler: ^(Comment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 评论的 ID

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

namespace Example
{
    public class deleteCommentExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 评论的 ID (default to null)

            try
            {
                // 删除一个评论
                Comment result = apiInstance.deleteComment(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 评论的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 评论的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 评论的 ID (default to null)

try: 
    # 删除一个评论
    api_response = api_instance.delete_comment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteComment: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.deleteComment(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
评论的 ID
Required

Responses



deleteTag

删除一个标签


/tag/admin/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/tag/admin/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 标签的 ID
        try {
            Tag result = apiInstance.deleteTag(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTag");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 标签的 ID
        try {
            Tag result = apiInstance.deleteTag(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTag");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 标签的 ID (default to null)

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

// 删除一个标签
[apiInstance deleteTagWith:id
              completionHandler: ^(Tag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 标签的 ID

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

namespace Example
{
    public class deleteTagExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 标签的 ID (default to null)

            try
            {
                // 删除一个标签
                Tag result = apiInstance.deleteTag(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 标签的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 标签的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 标签的 ID (default to null)

try: 
    # 删除一个标签
    api_response = api_instance.delete_tag(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteTag: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.deleteTag(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
标签的 ID
Required

Responses


deleteTweet

删除一个推文


/tweet/admin/{id}

Usage and SDK Samples

curl -X DELETE -H "authorization: [[apiKey]]" "http://localhost/tweet/admin/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 推文的 ID
        try {
            Tweet result = apiInstance.deleteTweet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTweet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 推文的 ID
        try {
            Tweet result = apiInstance.deleteTweet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTweet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 推文的 ID (default to null)

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

// 删除一个推文
[apiInstance deleteTweetWith:id
              completionHandler: ^(Tweet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 推文的 ID

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

namespace Example
{
    public class deleteTweetExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 推文的 ID (default to null)

            try
            {
                // 删除一个推文
                Tweet result = apiInstance.deleteTweet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteTweet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 推文的 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 推文的 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 推文的 ID (default to null)

try: 
    # 删除一个推文
    api_response = api_instance.delete_tweet(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteTweet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.deleteTweet(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
推文的 ID
Required

Responses


findAdminArticleList

获取后台文章列表


/article/admin/list

Usage and SDK Samples

curl -X GET -H "authorization: [[apiKey]]" "http://localhost/article/admin/list?offset=&limit=&category_path=&tag_path=&res_status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        String categoryPath = categoryPath_example; // String | 类别(查询)名称
        String tagPath = tagPath_example; // String | 标签(查询)名称
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Article] result = apiInstance.findAdminArticleList(offset, limit, categoryPath, tagPath, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminArticleList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        String categoryPath = categoryPath_example; // String | 类别(查询)名称
        String tagPath = tagPath_example; // String | 标签(查询)名称
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Article] result = apiInstance.findAdminArticleList(offset, limit, categoryPath, tagPath, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminArticleList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
String *categoryPath = categoryPath_example; // 类别(查询)名称 (optional) (default to null)
String *tagPath = tagPath_example; // 标签(查询)名称 (optional) (default to null)
Integer *resStatus = 56; // 资源状态 (optional) (default to null)

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

// 获取后台文章列表
[apiInstance findAdminArticleListWith:offset
    limit:limit
    categoryPath:categoryPath
    tagPath:tagPath
    resStatus:resStatus
              completionHandler: ^(array[Article] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'categoryPath': categoryPath_example, // {String} 类别(查询)名称
  'tagPath': tagPath_example, // {String} 标签(查询)名称
  'resStatus': 56 // {Integer} 资源状态
};

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

namespace Example
{
    public class findAdminArticleListExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var categoryPath = categoryPath_example;  // String | 类别(查询)名称 (optional)  (default to null)
            var tagPath = tagPath_example;  // String | 标签(查询)名称 (optional)  (default to null)
            var resStatus = 56;  // Integer | 资源状态 (optional)  (default to null)

            try
            {
                // 获取后台文章列表
                array[Article] result = apiInstance.findAdminArticleList(offset, limit, categoryPath, tagPath, resStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findAdminArticleList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$categoryPath = categoryPath_example; // String | 类别(查询)名称
$tagPath = tagPath_example; // String | 标签(查询)名称
$resStatus = 56; // Integer | 资源状态

try {
    $result = $api_instance->findAdminArticleList($offset, $limit, $categoryPath, $tagPath, $resStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findAdminArticleList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $categoryPath = categoryPath_example; # String | 类别(查询)名称
my $tagPath = tagPath_example; # String | 标签(查询)名称
my $resStatus = 56; # Integer | 资源状态

eval { 
    my $result = $api_instance->findAdminArticleList(offset => $offset, limit => $limit, categoryPath => $categoryPath, tagPath => $tagPath, resStatus => $resStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findAdminArticleList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
categoryPath = categoryPath_example # String | 类别(查询)名称 (optional) (default to null)
tagPath = tagPath_example # String | 标签(查询)名称 (optional) (default to null)
resStatus = 56 # Integer | 资源状态 (optional) (default to null)

try: 
    # 获取后台文章列表
    api_response = api_instance.find_admin_article_list(offset=offset, limit=limit, categoryPath=categoryPath, tagPath=tagPath, resStatus=resStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findAdminArticleList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let categoryPath = categoryPath_example; // String
    let tagPath = tagPath_example; // String
    let resStatus = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findAdminArticleList(offset, limit, categoryPath, tagPath, resStatus, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
category_path
String
类别(查询)名称
tag_path
String
标签(查询)名称
res_status
Integer
资源状态

Responses


findAdminCategoryList

获取后台类别列表


/category/admin/list

Usage and SDK Samples

curl -X GET -H "authorization: [[apiKey]]" "http://localhost/category/admin/list?offset=&limit=&res_status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Category] result = apiInstance.findAdminCategoryList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminCategoryList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Category] result = apiInstance.findAdminCategoryList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminCategoryList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
Integer *resStatus = 56; // 资源状态 (optional) (default to null)

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

// 获取后台类别列表
[apiInstance findAdminCategoryListWith:offset
    limit:limit
    resStatus:resStatus
              completionHandler: ^(array[Category] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'resStatus': 56 // {Integer} 资源状态
};

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

namespace Example
{
    public class findAdminCategoryListExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var resStatus = 56;  // Integer | 资源状态 (optional)  (default to null)

            try
            {
                // 获取后台类别列表
                array[Category] result = apiInstance.findAdminCategoryList(offset, limit, resStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findAdminCategoryList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$resStatus = 56; // Integer | 资源状态

try {
    $result = $api_instance->findAdminCategoryList($offset, $limit, $resStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findAdminCategoryList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $resStatus = 56; # Integer | 资源状态

eval { 
    my $result = $api_instance->findAdminCategoryList(offset => $offset, limit => $limit, resStatus => $resStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findAdminCategoryList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
resStatus = 56 # Integer | 资源状态 (optional) (default to null)

try: 
    # 获取后台类别列表
    api_response = api_instance.find_admin_category_list(offset=offset, limit=limit, resStatus=resStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findAdminCategoryList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let resStatus = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findAdminCategoryList(offset, limit, resStatus, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
res_status
Integer
资源状态

Responses


findAdminCommentList

获取后台评论列表


/comment/admin/list

Usage and SDK Samples

curl -X GET -H "authorization: [[apiKey]]" "http://localhost/comment/admin/list?offset=&limit=&res_status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Comment] result = apiInstance.findAdminCommentList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminCommentList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Comment] result = apiInstance.findAdminCommentList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminCommentList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
Integer *resStatus = 56; // 资源状态 (optional) (default to null)

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

// 获取后台评论列表
[apiInstance findAdminCommentListWith:offset
    limit:limit
    resStatus:resStatus
              completionHandler: ^(array[Comment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'resStatus': 56 // {Integer} 资源状态
};

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

namespace Example
{
    public class findAdminCommentListExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var resStatus = 56;  // Integer | 资源状态 (optional)  (default to null)

            try
            {
                // 获取后台评论列表
                array[Comment] result = apiInstance.findAdminCommentList(offset, limit, resStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findAdminCommentList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$resStatus = 56; // Integer | 资源状态

try {
    $result = $api_instance->findAdminCommentList($offset, $limit, $resStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findAdminCommentList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $resStatus = 56; # Integer | 资源状态

eval { 
    my $result = $api_instance->findAdminCommentList(offset => $offset, limit => $limit, resStatus => $resStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findAdminCommentList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
resStatus = 56 # Integer | 资源状态 (optional) (default to null)

try: 
    # 获取后台评论列表
    api_response = api_instance.find_admin_comment_list(offset=offset, limit=limit, resStatus=resStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findAdminCommentList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let resStatus = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findAdminCommentList(offset, limit, resStatus, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
res_status
Integer
资源状态

Responses



findAdminTagList

获取后台标签列表


/tag/admin/list

Usage and SDK Samples

curl -X GET -H "authorization: [[apiKey]]" "http://localhost/tag/admin/list?offset=&limit=&res_status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Tag] result = apiInstance.findAdminTagList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminTagList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Tag] result = apiInstance.findAdminTagList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminTagList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
Integer *resStatus = 56; // 资源状态 (optional) (default to null)

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

// 获取后台标签列表
[apiInstance findAdminTagListWith:offset
    limit:limit
    resStatus:resStatus
              completionHandler: ^(array[Tag] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'resStatus': 56 // {Integer} 资源状态
};

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

namespace Example
{
    public class findAdminTagListExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var resStatus = 56;  // Integer | 资源状态 (optional)  (default to null)

            try
            {
                // 获取后台标签列表
                array[Tag] result = apiInstance.findAdminTagList(offset, limit, resStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findAdminTagList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$resStatus = 56; // Integer | 资源状态

try {
    $result = $api_instance->findAdminTagList($offset, $limit, $resStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findAdminTagList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $resStatus = 56; # Integer | 资源状态

eval { 
    my $result = $api_instance->findAdminTagList(offset => $offset, limit => $limit, resStatus => $resStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findAdminTagList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
resStatus = 56 # Integer | 资源状态 (optional) (default to null)

try: 
    # 获取后台标签列表
    api_response = api_instance.find_admin_tag_list(offset=offset, limit=limit, resStatus=resStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findAdminTagList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let resStatus = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findAdminTagList(offset, limit, resStatus, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
res_status
Integer
资源状态

Responses


findAdminTweetList

获取后台推文列表


/tweet/admin/list

Usage and SDK Samples

curl -X GET -H "authorization: [[apiKey]]" "http://localhost/tweet/admin/list?offset=&limit=&res_status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Tweet] result = apiInstance.findAdminTweetList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminTweetList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer resStatus = 56; // Integer | 资源状态
        try {
            array[Tweet] result = apiInstance.findAdminTweetList(offset, limit, resStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findAdminTweetList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
Integer *resStatus = 56; // 资源状态 (optional) (default to null)

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

// 获取后台推文列表
[apiInstance findAdminTweetListWith:offset
    limit:limit
    resStatus:resStatus
              completionHandler: ^(array[Tweet] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'resStatus': 56 // {Integer} 资源状态
};

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

namespace Example
{
    public class findAdminTweetListExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var resStatus = 56;  // Integer | 资源状态 (optional)  (default to null)

            try
            {
                // 获取后台推文列表
                array[Tweet] result = apiInstance.findAdminTweetList(offset, limit, resStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findAdminTweetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$resStatus = 56; // Integer | 资源状态

try {
    $result = $api_instance->findAdminTweetList($offset, $limit, $resStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findAdminTweetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $resStatus = 56; # Integer | 资源状态

eval { 
    my $result = $api_instance->findAdminTweetList(offset => $offset, limit => $limit, resStatus => $resStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findAdminTweetList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
resStatus = 56 # Integer | 资源状态 (optional) (default to null)

try: 
    # 获取后台推文列表
    api_response = api_instance.find_admin_tweet_list(offset=offset, limit=limit, resStatus=resStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findAdminTweetList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let resStatus = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findAdminTweetList(offset, limit, resStatus, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
res_status
Integer
资源状态

Responses


findArticleList

获取前台文章列表


/article/list

Usage and SDK Samples

curl -X GET "http://localhost/article/list?offset=&limit=&category_path=&tag_path="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        String categoryPath = categoryPath_example; // String | 类别(查询)名称
        String tagPath = tagPath_example; // String | 标签(查询)名称
        try {
            array[Article] result = apiInstance.findArticleList(offset, limit, categoryPath, tagPath);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findArticleList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        String categoryPath = categoryPath_example; // String | 类别(查询)名称
        String tagPath = tagPath_example; // String | 标签(查询)名称
        try {
            array[Article] result = apiInstance.findArticleList(offset, limit, categoryPath, tagPath);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findArticleList");
            e.printStackTrace();
        }
    }
}
Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
String *categoryPath = categoryPath_example; // 类别(查询)名称 (optional) (default to null)
String *tagPath = tagPath_example; // 标签(查询)名称 (optional) (default to null)

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

// 获取前台文章列表
[apiInstance findArticleListWith:offset
    limit:limit
    categoryPath:categoryPath
    tagPath:tagPath
              completionHandler: ^(array[Article] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'categoryPath': categoryPath_example, // {String} 类别(查询)名称
  'tagPath': tagPath_example // {String} 标签(查询)名称
};

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

namespace Example
{
    public class findArticleListExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var categoryPath = categoryPath_example;  // String | 类别(查询)名称 (optional)  (default to null)
            var tagPath = tagPath_example;  // String | 标签(查询)名称 (optional)  (default to null)

            try
            {
                // 获取前台文章列表
                array[Article] result = apiInstance.findArticleList(offset, limit, categoryPath, tagPath);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findArticleList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$categoryPath = categoryPath_example; // String | 类别(查询)名称
$tagPath = tagPath_example; // String | 标签(查询)名称

try {
    $result = $api_instance->findArticleList($offset, $limit, $categoryPath, $tagPath);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findArticleList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $categoryPath = categoryPath_example; # String | 类别(查询)名称
my $tagPath = tagPath_example; # String | 标签(查询)名称

eval { 
    my $result = $api_instance->findArticleList(offset => $offset, limit => $limit, categoryPath => $categoryPath, tagPath => $tagPath);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findArticleList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
categoryPath = categoryPath_example # String | 类别(查询)名称 (optional) (default to null)
tagPath = tagPath_example # String | 标签(查询)名称 (optional) (default to null)

try: 
    # 获取前台文章列表
    api_response = api_instance.find_article_list(offset=offset, limit=limit, categoryPath=categoryPath, tagPath=tagPath)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findArticleList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let categoryPath = categoryPath_example; // String
    let tagPath = tagPath_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.findArticleList(offset, limit, categoryPath, tagPath, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
category_path
String
类别(查询)名称
tag_path
String
标签(查询)名称

Responses


findCategoryList

获取前台类别列表


/category/list

Usage and SDK Samples

curl -X GET "http://localhost/category/list?offset=&limit="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        try {
            array[Category] result = apiInstance.findCategoryList(offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findCategoryList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        try {
            array[Category] result = apiInstance.findCategoryList(offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findCategoryList");
            e.printStackTrace();
        }
    }
}
Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)

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

// 获取前台类别列表
[apiInstance findCategoryListWith:offset
    limit:limit
              completionHandler: ^(array[Category] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56 // {Integer} 数据集大小
};

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

namespace Example
{
    public class findCategoryListExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)

            try
            {
                // 获取前台类别列表
                array[Category] result = apiInstance.findCategoryList(offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findCategoryList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小

try {
    $result = $api_instance->findCategoryList($offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findCategoryList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小

eval { 
    my $result = $api_instance->findCategoryList(offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findCategoryList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)

try: 
    # 获取前台类别列表
    api_response = api_instance.find_category_list(offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findCategoryList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findCategoryList(offset, limit, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小

Responses


findCommentList

获取前台评论列表


/comment/list

Usage and SDK Samples

curl -X GET "http://localhost/comment/list?offset=&limit=&article_id="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer articleId = 56; // Integer | 文章 ID
        try {
            array[Comment] result = apiInstance.findCommentList(offset, limit, articleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findCommentList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        Integer articleId = 56; // Integer | 文章 ID
        try {
            array[Comment] result = apiInstance.findCommentList(offset, limit, articleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findCommentList");
            e.printStackTrace();
        }
    }
}
Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)
Integer *articleId = 56; // 文章 ID (optional) (default to null)

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

// 获取前台评论列表
[apiInstance findCommentListWith:offset
    limit:limit
    articleId:articleId
              completionHandler: ^(array[Comment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56, // {Integer} 数据集大小
  'articleId': 56 // {Integer} 文章 ID
};

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

namespace Example
{
    public class findCommentListExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)
            var articleId = 56;  // Integer | 文章 ID (optional)  (default to null)

            try
            {
                // 获取前台评论列表
                array[Comment] result = apiInstance.findCommentList(offset, limit, articleId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findCommentList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小
$articleId = 56; // Integer | 文章 ID

try {
    $result = $api_instance->findCommentList($offset, $limit, $articleId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findCommentList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小
my $articleId = 56; # Integer | 文章 ID

eval { 
    my $result = $api_instance->findCommentList(offset => $offset, limit => $limit, articleId => $articleId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findCommentList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)
articleId = 56 # Integer | 文章 ID (optional) (default to null)

try: 
    # 获取前台评论列表
    api_response = api_instance.find_comment_list(offset=offset, limit=limit, articleId=articleId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findCommentList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let articleId = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findCommentList(offset, limit, articleId, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小
article_id
Integer
文章 ID

Responses


findCustomList

获取前台定制内容


/custom

Usage and SDK Samples

curl -X GET "http://localhost/custom?includes="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String includes = article|category|tag|comment|tweet|link; // String | 包含表达式
        try {
            array[Custom] result = apiInstance.findCustomList(includes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findCustomList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String includes = article|category|tag|comment|tweet|link; // String | 包含表达式
        try {
            array[Custom] result = apiInstance.findCustomList(includes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findCustomList");
            e.printStackTrace();
        }
    }
}
String *includes = article|category|tag|comment|tweet|link; // 包含表达式 (optional) (default to null)

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

// 获取前台定制内容
[apiInstance findCustomListWith:includes
              completionHandler: ^(array[Custom] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'includes': article|category|tag|comment|tweet|link // {String} 包含表达式
};

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

namespace Example
{
    public class findCustomListExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var includes = article|category|tag|comment|tweet|link;  // String | 包含表达式 (optional)  (default to null)

            try
            {
                // 获取前台定制内容
                array[Custom] result = apiInstance.findCustomList(includes);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findCustomList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$includes = article|category|tag|comment|tweet|link; // String | 包含表达式

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $includes = article|category|tag|comment|tweet|link; # String | 包含表达式

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
includes = article|category|tag|comment|tweet|link # String | 包含表达式 (optional) (default to null)

try: 
    # 获取前台定制内容
    api_response = api_instance.find_custom_list(includes=includes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findCustomList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let includes = article|category|tag|comment|tweet|link; // String

    let mut context = DefaultApi::Context::default();
    let result = client.findCustomList(includes, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
includes
String
包含表达式

Responses



findTagList

获取前台标签列表


/tag/list

Usage and SDK Samples

curl -X GET "http://localhost/tag/list?offset=&limit="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        try {
            array[Tag] result = apiInstance.findTagList(offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findTagList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        try {
            array[Tag] result = apiInstance.findTagList(offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findTagList");
            e.printStackTrace();
        }
    }
}
Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)

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

// 获取前台标签列表
[apiInstance findTagListWith:offset
    limit:limit
              completionHandler: ^(array[Tag] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56 // {Integer} 数据集大小
};

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

namespace Example
{
    public class findTagListExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)

            try
            {
                // 获取前台标签列表
                array[Tag] result = apiInstance.findTagList(offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findTagList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小

try {
    $result = $api_instance->findTagList($offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findTagList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小

eval { 
    my $result = $api_instance->findTagList(offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findTagList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)

try: 
    # 获取前台标签列表
    api_response = api_instance.find_tag_list(offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findTagList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findTagList(offset, limit, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小

Responses


findTweetList

获取前台推文列表


/tweet/list

Usage and SDK Samples

curl -X GET "http://localhost/tweet/list?offset=&limit="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        try {
            array[Tweet] result = apiInstance.findTweetList(offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findTweetList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer offset = 56; // Integer | 数据集偏移
        Integer limit = 56; // Integer | 数据集大小
        try {
            array[Tweet] result = apiInstance.findTweetList(offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findTweetList");
            e.printStackTrace();
        }
    }
}
Integer *offset = 56; // 数据集偏移 (optional) (default to null)
Integer *limit = 56; // 数据集大小 (optional) (default to null)

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

// 获取前台推文列表
[apiInstance findTweetListWith:offset
    limit:limit
              completionHandler: ^(array[Tweet] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'offset': 56, // {Integer} 数据集偏移
  'limit': 56 // {Integer} 数据集大小
};

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

namespace Example
{
    public class findTweetListExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var offset = 56;  // Integer | 数据集偏移 (optional)  (default to null)
            var limit = 56;  // Integer | 数据集大小 (optional)  (default to null)

            try
            {
                // 获取前台推文列表
                array[Tweet] result = apiInstance.findTweetList(offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findTweetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$offset = 56; // Integer | 数据集偏移
$limit = 56; // Integer | 数据集大小

try {
    $result = $api_instance->findTweetList($offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findTweetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $offset = 56; # Integer | 数据集偏移
my $limit = 56; # Integer | 数据集大小

eval { 
    my $result = $api_instance->findTweetList(offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findTweetList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
offset = 56 # Integer | 数据集偏移 (optional) (default to null)
limit = 56 # Integer | 数据集大小 (optional) (default to null)

try: 
    # 获取前台推文列表
    api_response = api_instance.find_tweet_list(offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findTweetList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.findTweetList(offset, limit, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
数据集偏移
limit
Integer
数据集大小

Responses


genToken

生成认证令牌


/token/gen

Usage and SDK Samples

curl -X POST "http://localhost/token/gen"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Admin admin = ; // Admin | 
        try {
            Token result = apiInstance.genToken(admin);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#genToken");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Admin admin = ; // Admin | 
        try {
            Token result = apiInstance.genToken(admin);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#genToken");
            e.printStackTrace();
        }
    }
}
Admin *admin = ; // 

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

// 生成认证令牌
[apiInstance genTokenWith:admin
              completionHandler: ^(Token output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var admin = ; // {Admin} 

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

namespace Example
{
    public class genTokenExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var admin = new Admin(); // Admin | 

            try
            {
                // 生成认证令牌
                Token result = apiInstance.genToken(admin);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.genToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$admin = ; // Admin | 

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $admin = WWW::OPenAPIClient::Object::Admin->new(); # Admin | 

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
admin =  # Admin | 

try: 
    # 生成认证令牌
    api_response = api_instance.gen_token(admin)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->genToken: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let admin = ; // Admin

    let mut context = DefaultApi::Context::default();
    let result = client.genToken(admin, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Body parameters
Name Description
admin *

管理员信息

Responses


getAdminArticle

获取后台文章内容


/article/admin/{id}

Usage and SDK Samples

curl -X GET -H "authorization: [[apiKey]]" "http://localhost/article/admin/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章 ID
        try {
            array[Article] result = apiInstance.getAdminArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAdminArticle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章 ID
        try {
            array[Article] result = apiInstance.getAdminArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAdminArticle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 文章 ID (default to null)

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

// 获取后台文章内容
[apiInstance getAdminArticleWith:id
              completionHandler: ^(array[Article] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

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

var api = new AnyEx.DefaultApi()
var id = 56; // {Integer} 文章 ID

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

namespace Example
{
    public class getAdminArticleExample
    {
        public void main()
        {
            
            // Configure API key authorization: jwt_auth
            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 DefaultApi();
            var id = 56;  // Integer | 文章 ID (default to null)

            try
            {
                // 获取后台文章内容
                array[Article] result = apiInstance.getAdminArticle(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getAdminArticle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 文章 ID

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

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

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 文章 ID

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

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 文章 ID (default to null)

try: 
    # 获取后台文章内容
    api_response = api_instance.get_admin_article(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getAdminArticle: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.getAdminArticle(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
文章 ID
Required

Responses


getArticle

获取前台文章内容


/article

Usage and SDK Samples

curl -X GET "http://localhost/article?id=&path="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章 ID
        String path = path_example; // String | 文章查询路径
        try {
            Article result = apiInstance.getArticle(id, path);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getArticle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章 ID
        String path = path_example; // String | 文章查询路径
        try {
            Article result = apiInstance.getArticle(id, path);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getArticle");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // 文章 ID (optional) (default to null)
String *path = path_example; // 文章查询路径 (optional) (default to null)

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

// 获取前台文章内容
[apiInstance getArticleWith:id
    path:path
              completionHandler: ^(Article output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');

var api = new AnyEx.DefaultApi()
var opts = {
  'id': 56, // {Integer} 文章 ID
  'path': path_example // {String} 文章查询路径
};

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

namespace Example
{
    public class getArticleExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | 文章 ID (optional)  (default to null)
            var path = path_example;  // String | 文章查询路径 (optional)  (default to null)

            try
            {
                // 获取前台文章内容
                Article result = apiInstance.getArticle(id, path);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getArticle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 文章 ID
$path = path_example; // String | 文章查询路径

try {
    $result = $api_instance->getArticle($id, $path);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getArticle: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 文章 ID
my $path = path_example; # String | 文章查询路径

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

# create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | 文章 ID (optional) (default to null)
path = path_example # String | 文章查询路径 (optional) (default to null)

try: 
    # 获取前台文章内容
    api_response = api_instance.get_article(id=id, path=path)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getArticle: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let path = path_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.getArticle(id, path, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Query parameters
Name Description
id
Integer
文章 ID
path
String
文章查询路径

Responses


hiddenArticle

隐藏一个文章


/article/admin/hidden/{id}

Usage and SDK Samples

curl -X PUT -H "authorization: [[apiKey]]" "http://localhost/article/admin/hidden/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {

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

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章的 ID
        try {
            Article result = apiInstance.hiddenArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#hiddenArticle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 文章的 ID
        try {
            Article result = apiInstance.hiddenArticle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#hiddenArticle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_auth)
[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"];

Integer *id = 56; // 文章的 ID (default to null)

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

// 隐藏一个文章
[apiInstance hiddenArticleWith:id
              completionHandler: ^(Article output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnyEx = require('any_ex_');
var defaultClient = AnyEx.ApiClient.instance;

// Configure API key authorization: jwt_auth
var jwt_auth = defaultClient.authentications['jwt_auth'];
jwt_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set