eventactivityCheckinEventIdActivityIdPost
Check-in user for an event activity
/eventactivity/checkin/{eventId}/{activityId}
Usage and SDK Samples
curl -X POST\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://eventhub-backend.herokuapp.com/eventactivity/checkin/{eventId}/{activityId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventActivitiesApi;
import java.io.File;
import java.util.*;
public class EventActivitiesApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
EventActivitiesApi apiInstance = new EventActivitiesApi();
EventId_activityId_body_1 body = ; // EventId_activityId_body_1 |
String eventId = eventId_example; // String | ID of the event
String activityId = activityId_example; // String | ID of the activity
try {
inline_response_201 result = apiInstance.eventactivityCheckinEventIdActivityIdPost(body, eventId, activityId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventActivitiesApi#eventactivityCheckinEventIdActivityIdPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.EventActivitiesApi;
public class EventActivitiesApiExample {
public static void main(String[] args) {
EventActivitiesApi apiInstance = new EventActivitiesApi();
EventId_activityId_body_1 body = ; // EventId_activityId_body_1 |
String eventId = eventId_example; // String | ID of the event
String activityId = activityId_example; // String | ID of the activity
try {
inline_response_201 result = apiInstance.eventactivityCheckinEventIdActivityIdPost(body, eventId, activityId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventActivitiesApi#eventactivityCheckinEventIdActivityIdPost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
EventId_activityId_body_1 *body = ; //
String *eventId = eventId_example; // ID of the event
String *activityId = activityId_example; // ID of the activity
EventActivitiesApi *apiInstance = [[EventActivitiesApi alloc] init];
// Check-in user for an event activity
[apiInstance eventactivityCheckinEventIdActivityIdPostWith:body
eventId:eventId
activityId:activityId
completionHandler: ^(inline_response_201 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EventTicketManagementApi = require('event__ticket_management_api');
var defaultClient = EventTicketManagementApi.ApiClient.instance;
var api = new EventTicketManagementApi.EventActivitiesApi()
var body = ; // {{EventId_activityId_body_1}}
var eventId = eventId_example; // {{String}} ID of the event
var activityId = activityId_example; // {{String}} ID of the activity
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.eventactivityCheckinEventIdActivityIdPost(bodyeventIdactivityId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class eventactivityCheckinEventIdActivityIdPostExample
{
public void main()
{
var apiInstance = new EventActivitiesApi();
var body = new EventId_activityId_body_1(); // EventId_activityId_body_1 |
var eventId = eventId_example; // String | ID of the event
var activityId = activityId_example; // String | ID of the activity
try
{
// Check-in user for an event activity
inline_response_201 result = apiInstance.eventactivityCheckinEventIdActivityIdPost(body, eventId, activityId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EventActivitiesApi.eventactivityCheckinEventIdActivityIdPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiEventActivitiesApi();
$body = ; // EventId_activityId_body_1 |
$eventId = eventId_example; // String | ID of the event
$activityId = activityId_example; // String | ID of the activity
try {
$result = $api_instance->eventactivityCheckinEventIdActivityIdPost($body, $eventId, $activityId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventActivitiesApi->eventactivityCheckinEventIdActivityIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventActivitiesApi;
my $api_instance = WWW::SwaggerClient::EventActivitiesApi->new();
my $body = WWW::SwaggerClient::Object::EventId_activityId_body_1->new(); # EventId_activityId_body_1 |
my $eventId = eventId_example; # String | ID of the event
my $activityId = activityId_example; # String | ID of the activity
eval {
my $result = $api_instance->eventactivityCheckinEventIdActivityIdPost(body => $body, eventId => $eventId, activityId => $activityId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling EventActivitiesApi->eventactivityCheckinEventIdActivityIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.EventActivitiesApi()
body = # EventId_activityId_body_1 |
eventId = eventId_example # String | ID of the event
activityId = activityId_example # String | ID of the activity
try:
# Check-in user for an event activity
api_response = api_instance.eventactivity_checkin_event_id_activity_id_post(body, eventId, activityId)
pprint(api_response)
except ApiException as e:
print("Exception when calling EventActivitiesApi->eventactivityCheckinEventIdActivityIdPost: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| eventId* |
String
ID of the event
Required
|
| activityId* |
String
ID of the activity
Required
|
| Name | Description |
|---|---|
| body * |