Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: xively-jumpstart-demo
src/libxively/http_transport_layer.h
- Committer:
- xively
- Date:
- 2013-05-13
- Revision:
- 0:53753690a8bf
File content as of revision 0:53753690a8bf:
// Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
// This is part of Xively C library, it is under the BSD 3-Clause license.
/**
 * \file    http_transport_layer.h
 * \author  Olgierd Humenczuk
 * \brief   Implements HTTP _transport layer_ encoders and decoders specific to Xively REST/HTTP API
 */
#ifndef __HTTP_TRANSPORT_LAYER_H__
#define __HTTP_TRANSPORT_LAYER_H__
#include "xively.h"
#include "data_layer.h"
#ifdef __cplusplus
extern "C" {
#endif
const char* http_encode_create_datastream(
          const data_layer_t*
        , const char* x_api_key
        , int32_t feed_id
        , const char *datastream_id
        , const xi_datapoint_value_t* value );
const char* http_encode_update_datastream(
          const data_layer_t*
        , const char* x_api_key
        , int32_t feed_id
        , const char *datastream_id
        , const xi_datapoint_value_t* value );
const char* http_encode_get_datastream(
          const data_layer_t*
        , const char* x_api_key
        , int32_t feed_id
        , const char *datastream_id );
const char* http_encode_delete_datastream(
          const data_layer_t*
        , const char* x_api_key
        , int32_t feed_id
        , const char *datastream_id );
const char* http_encode_delete_datapoint(
          const data_layer_t*
        , const char* x_api_key
        , int32_t feed_id
        , const char *datastream_id
        , const xi_datapoint_t* o );
const char* http_encode_update_feed(
          const data_layer_t*
        , const char* x_api_key
        , const xi_feed_t* feed );
const char* http_encode_get_feed(
        const data_layer_t*
      , const char* x_api_key
      , const xi_feed_t* feed );
const char* http_encode_datapoint_delete_range(
        const data_layer_t*
      , const char* x_api_key
      , int feed_id
      , const char* datastream_id
      , const xi_timestamp_t* start
      , const xi_timestamp_t* end );
const xi_response_t* http_decode_reply(
          const data_layer_t*
        , const char* data );
#ifdef __cplusplus
}
#endif
#endif // __HTTP_TRANSPORT_LAYER_H__