lib/backchat_client/channel.rb
##
# This method POST a request to create a new channel on behalf of the
# authenticated application
# ==== Parameters
# * *uri*: Full URI of the channel: <type>://<address> including the filter
#
# ==== Return
# * JSON decoded response body returned by Backchat
# * BackchatClient::Error::ClientError if invalid data
This method POST a request to create a new channel on behalf of the
authenticated application
Parameters
*uri*: Full URI of the channel: :// including the filter

Return
JSON decoded response body returned by Backchat
BackchatClient::Error::ClientError if invalid data
This method POST a request to create a new channel on behalf of the authenticated application Parameters * uri * : Full URI of the channel : : // including the filter Return JSON decoded response body returned by Backchat BackchatClient :: Error :: ClientError if invalid data
def create(uri)
      begin
        data = post("index.json", {:channel => uri})
        ActiveSupport::JSON.decode(data)
      rescue Error::ClientError => ex
        logger.error ex.errors
        raise ex
      end
    end
def create ( uri ) begin data = post ( "index.json" , { :channel => uri } ) ActiveSupport :: JSON . decode ( data ) rescue Error :: ClientError => ex logger . error ex . errors raise ex end end
This method POST a request to create a new channel on behalf of the
authenticated application
 Parameters
 *uri*: Full URI of the channel: <type>://<address> including the filter
This method POST a request to create a new channel on behalf of the authenticated application Parameters * uri * : Full URI of the channel : <type > : // <address > including the filter
uri
<not_specific>