Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers http_transport_layer.h Source File

http_transport_layer.h

Go to the documentation of this file.
00001 // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
00002 // This is part of Xively C library, it is under the BSD 3-Clause license.
00003 
00004 /**
00005  * \file    http_transport_layer.h
00006  * \author  Olgierd Humenczuk
00007  * \brief   Implements HTTP _transport layer_ encoders and decoders specific to Xively REST/HTTP API
00008  */
00009 
00010 #ifndef __HTTP_TRANSPORT_LAYER_H__
00011 #define __HTTP_TRANSPORT_LAYER_H__
00012 
00013 #include "xively.h"
00014 #include "data_layer.h"
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 const char* http_encode_create_datastream(
00021           const data_layer_t*
00022         , const char* x_api_key
00023         , int32_t feed_id
00024         , const char *datastream_id
00025         , const xi_datapoint_value_t* value );
00026 
00027 const char* http_encode_update_datastream(
00028           const data_layer_t*
00029         , const char* x_api_key
00030         , int32_t feed_id
00031         , const char *datastream_id
00032         , const xi_datapoint_value_t* value );
00033 
00034 const char* http_encode_get_datastream(
00035           const data_layer_t*
00036         , const char* x_api_key
00037         , int32_t feed_id
00038         , const char *datastream_id );
00039 
00040 const char* http_encode_delete_datastream(
00041           const data_layer_t*
00042         , const char* x_api_key
00043         , int32_t feed_id
00044         , const char *datastream_id );
00045 
00046 const char* http_encode_delete_datapoint(
00047           const data_layer_t*
00048         , const char* x_api_key
00049         , int32_t feed_id
00050         , const char *datastream_id
00051         , const xi_datapoint_t* o );
00052 
00053 const char* http_encode_update_feed(
00054           const data_layer_t*
00055         , const char* x_api_key
00056         , const xi_feed_t* feed );
00057 
00058 const char* http_encode_get_feed(
00059         const data_layer_t*
00060       , const char* x_api_key
00061       , const xi_feed_t* feed );
00062 
00063 const char* http_encode_datapoint_delete_range(
00064         const data_layer_t*
00065       , const char* x_api_key
00066       , int feed_id
00067       , const char* datastream_id
00068       , const xi_timestamp_t* start
00069       , const xi_timestamp_t* end );
00070 
00071 const xi_response_t* http_decode_reply(
00072           const data_layer_t*
00073         , const char* data );
00074 
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078 
00079 #endif // __HTTP_TRANSPORT_LAYER_H__