nHubPost
NHub_Post
/NHub/Post
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json,text/json,application/xml,text/xml" \
-H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
"https://api.dev.spenda.co/api/NHub/Post?pns=pns_example" \
-d 'Custom MIME type example not yet supported: text/json' \
-d '' \
-d 'Custom MIME type example not yet supported: text/xml' \
-d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
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) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String pns = pns_example; // String |
String body = string; // String |
try {
Object result = apiInstance.nHubPost(pns, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#nHubPost");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String pns = new String(); // String |
final String body = new String(); // String |
try {
final result = await api_instance.nHubPost(pns, body);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->nHubPost: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String pns = pns_example; // String |
String body = string; // String |
try {
Object result = apiInstance.nHubPost(pns, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#nHubPost");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *pns = pns_example; // (default to null)
String *body = string; // (optional)
// NHub_Post
[apiInstance nHubPostWith:pns
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiNHub = require('as_server_api_n_hub');
// Create an instance of the API class
var api = new AsServerApiNHub.DefaultApi()
var pns = pns_example; // {String}
var opts = {
'body': string // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.nHubPost(pns, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class nHubPostExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var pns = pns_example; // String | (default to null)
var body = string; // String | (optional)
try {
// NHub_Post
Object result = apiInstance.nHubPost(pns, body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.nHubPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$pns = pns_example; // String |
$body = string; // String |
try {
$result = $api_instance->nHubPost($pns, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->nHubPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $pns = pns_example; # String |
my $body = WWW::OPenAPIClient::Object::String->new(); # String |
eval {
my $result = $api_instance->nHubPost(pns => $pns, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->nHubPost: $@\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()
pns = pns_example # String | (default to null)
body = string # String | (optional)
try:
# NHub_Post
api_response = api_instance.n_hub_post(pns, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->nHubPost: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let pns = pns_example; // String
let body = string; // String
let mut context = DefaultApi::Context::default();
let result = client.nHubPost(pns, body, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Body parameters
| Name | Description |
|---|---|
| body |
Query parameters
| Name | Description |
|---|---|
| pns* |
String
Required
|