CrossClj

0.2.3 docs

SourceDocs



RECENT
    VARS
    get-cloud-url
    ironmq-request
    queue-exists?

    « Index of all namespaces of this project

    Utility functions for interacting with IronMQ directly.
    
    (get-cloud-url client)
    Given an io.iron.ironmq.Client instance, constructs a URL that can
    be used for direct REST requests. This is necessary in cases where
    the Java client does not implement a feature exposed by the REST API
    yet.
    (ironmq-request method request)(ironmq-request client method request & body)
    Given an io.iron.ironmq.Client instance, submits the given REST
    request to its endpoint. Attempts to create a new Client with default
    settings if none is provided.
    
    body is optional; it will be submitted as the request body if given.
    
    The two argument version uses the default Client initialized from 
    the environment, for convenience.
    
    Examples:
    
         (ironmq-request (get-client foo)
                            :post
                            "/queues/foo/messages"
                            {"messages" [{"body" "First test message"} {"body" "Second test message"}]})
    
         (ironmq-request :get "/queues/foo")
    (queue-exists? name)
    Returns a queue status map if a queue with the given name exists in
    IronMQ, else false if the queue does not exist.