Company API

API change history

A collection of RESTful methods that returns various financial data for a requested company including balance sheets, stock quotes , company look-up utilities and more.

Sentiment Analysis

Last10K.com and Stocksnips.net computationally analyzes management discussions inside annual and quarterly reports and identifies positive (P) and negative (N) remarks on the company's finances and operations to form an overall Bullish (L), Bearish (R) or Neutral (U) rating.

* Form Types supported: 10-K 10-Q

** Use the CIK and Accession Number values returned from the Company Filings endpoint for this endpoint's Request Parameters.

Try it

Request

Request URL

Request parameters

  • string

    Central Index Key (CIK)

  • string

    SEC Filing Identifier

Request headers

  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

Responses

200 OK

Company found

Representations

{
  "meta": {
    "copyright": "Copyright 2021 Last10K.com All Rights Reserverd",
    "terms": "https://dev.last10k.com/terms"
  },
  "data": {
    "attributes": {
      "status": 0,
      "company": {
        "name": "Rocky Mountain Chocolate Factory, Inc.",
        "cik": "1616262",
        "ticker": "rmcf"
      },
      "filing": {
        "accessionNumber": "0001437749-21-013850",
        "filingDate": "2021-06-01T00:00:00",
        "period": "2021-02-28T00:00:00",
        "source": "10-K",
        "url": "https://last10k.com/sec-filings/report/1616262/000143774921013850/rmcfd20210228_10k.htm"
      },
      "count": 42,
      "result": {
        "Snippets": [{
          "ID": "58964436_98",
          "Sentiment": "P",
          "Score": 4676,
          "Category": "Financial",
          "Subcategory": "Earnings",
          "Content": "We believe adjusted gross margin and factory adjusted gross margin are helpful in understanding our past performance as a supplement to gross margin, factory gross margin and other performance measures calculated in conformity with GAAP."
        }, {
          "ID": "58964436_80",
          "Sentiment": "N",
          "Score": 4387,
          "Category": "Financial",
          "Subcategory": "Income",
          "Content": "The decreases in operating income and net income were due primarily to a decline in revenue associated with the continued impacts from the COVID-19 pandemic, including its impact on our operations and the operations of our franchised, licensed and Company-owned locations."
        }, {
          "ID": "58964436_30",
          "Sentiment": "P",
          "Score": 4330,
          "Category": "Financial",
          "Subcategory": "Debt",
          "Content": "As a result of the negative impacts of COVID-19 the Company incurred bad debt expense of approximately $1.3 million, incurred expense associated with the impairment of goodwill and intangible assets of approximately $476,000 and incurred expense associated with fixed asset impairments of approximately $57,000."
        }, {
          "ID": "58964436_71",
          "Sentiment": "N",
          "Score": 3814,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "During FY 2021, same store pounds purchased from the factory by franchised and co-branded licensed stores decreased approximately 74.3% in the first quarter, decreased approximately 27.7% in the second quarter, decreased approximately 16.9% in the third quarter, decreased approximately 7.5% in the fourth quarter, and decreased 30.0% overall in FY 2021 as compared to the same periods in FY 2020."
        }, {
          "ID": "58964436_99",
          "Sentiment": "P",
          "Score": 3711,
          "Category": "Financial",
          "Subcategory": "Earnings",
          "Content": "We believe that adjusted gross margin and factory adjusted gross margin are useful to investors because they provide a measure of operating performance and our ability to generate cash that is unaffected by non-cash accounting measures."
        }, {
          "ID": "58964436_108",
          "Sentiment": "P",
          "Score": 3502,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "Franchise Costs The decrease in franchise costs for FY 2021 compared to FY 2020 was due primarily to lower travel costs, the result of COVID-19 related travel restrictions."
        }, {
          "ID": "58964436_192",
          "Sentiment": "P",
          "Score": 3378,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "Prior to FY 2019, franchise fee revenue was recognized upon opening of the franchise store, or upon execution of an international license agreement."
        }, {
          "ID": "58964436_23",
          "Sentiment": "N",
          "Score": 3334,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "This trend has negatively impacted, and is expected to continue to negatively impact, among other things, factory sales, retail sales and royalty and marketing fees."
        }, {
          "ID": "58964436_112",
          "Sentiment": "P",
          "Score": 3312,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "General and Administrative The decrease in general and administrative costs during FY 2021 compared to FY 2020 was due to lower professional fees associated with the Company's process to explore and review strategic alternatives and costs associated with a stockholder's contested solicitation of proxies during FY 2020, with no comparable costs incurred during FY 2021."
        }, {
          "ID": "58964436_66",
          "Sentiment": "P",
          "Score": 3299,
          "Category": "Financial",
          "Subcategory": "Earnings",
          "Content": "The most important factors in continued growth in our earnings are macroeconomic and retail sector post-COVID 19 recovery, ongoing online revenue growth, a shift in consumer behavior as a result of the COVID-19 pandemic, unit growth, increased same store sales and increased same store pounds purchased from the factory."
        }, {
          "ID": "58964436_144",
          "Sentiment": "P",
          "Score": 2914,
          "Category": "Financial",
          "Subcategory": "Cash Flow",
          "Content": "Cash and cash equivalent balances increased from $4.8 million as of February 29, 2020 to $5.6 million as of February 28, 2021 as a result of cash flows generated by financing activities."
        }, {
          "ID": "58964436_130",
          "Sentiment": "P",
          "Score": 2892,
          "Category": "Financial",
          "Subcategory": "Debt",
          "Content": "The Company recognized a gain on insurance recovery of $210,500 and recognized forgiveness of debt in the amount of $1.5 million during FY 2021, compared with no similar amounts recognized during FY 2020."
        }, {
          "ID": "58964436_122",
          "Sentiment": "P",
          "Score": 2802,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "Depreciation and Amortization Depreciation and amortization, exclusive of depreciation and amortization included in cost of sales, was $711,000 during FY 2021, a decrease of 20.6% from $895,000 incurred during FY 2020."
        }, {
          "ID": "58964436_104",
          "Sentiment": "N",
          "Score": 2789,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "Cost of Sales and Gross Margin Factory gross margin decreased 9.0% during FY 2021 compared to FY 2020 due primarily to lower production volume."
        }, {
          "ID": "58964436_132",
          "Sentiment": "P",
          "Score": 2787,
          "Category": "Financial",
          "Subcategory": "Income",
          "Content": "Income Tax Expense Our effective income tax rate for FY 2021 was 49.8%, compared to 26.3% FY 2020."
        }, {
          "ID": "58964436_210",
          "Sentiment": "P",
          "Score": 2623,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "Borrowings under the SWRL Loan Agreement were secured by all of the assets of SWRL, including all of the outstanding stock of its wholly-owned subsidiary, U-Swirl."
        }, {
          "ID": "58964436_116",
          "Sentiment": "P",
          "Score": 2593,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "As a result of this assessment total allowances for potentially uncollectable accounts and notes receivable increased to $1,454,140 at February 28, 2021, compared to $638,907 at February 29, 2020."
        }, {
          "ID": "58964436_105",
          "Sentiment": "N",
          "Score": 2468,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "During FY 2021, production volume decreased 23.8% in response to a 19.5% decrease in factory sales, primarily due to the impacts of the COVID-19 pandemic."
        }, {
          "ID": "58964436_56",
          "Sentiment": "P",
          "Score": 2456,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "Limited financing alternatives for domestic franchise growth has led us to pursue a strategy of expansion through co-branding with complimentary concepts such as ice cream and frozen yogurt, international development, sale of our products to specialty markets, licensing the Rocky Mountain Chocolate Factory brand for use with other appropriate consumer products, and selected entry of Rocky Mountain Chocolate Factory branded products into other wholesale channels, along with business acquisitions as primary drivers of growth."
        }, {
          "ID": "58964436_207",
          "Sentiment": "P",
          "Score": 2385,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "Effective March 1, 2002, under ASC Topic 350, all goodwill with indefinite lives is no longer subject to amortization."
        }, {
          "ID": "58964436_82",
          "Sentiment": "N",
          "Score": 2322,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "The decrease in sales of product to our network of franchised and licensed retail stores was primarily the result of the COVID-19 pandemic and the associated public health measures in place during FY 2021, which significantly reduced traffic in our stores and caused most stores to close for a portion of FY 2021."
        }, {
          "ID": "58964436_60",
          "Sentiment": "P",
          "Score": 2320,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "We are subject to seasonal fluctuations in sales because of key holidays and the location of our franchisees, which have traditionally been located in resort or tourist locations, and the nature of the products we sell, which are highly seasonal."
        }, {
          "ID": "58964436_151",
          "Sentiment": "P",
          "Score": 2279,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "During FY 2021, investing activities used cash of $71,000, primarily due to the purchases of property and equipment, intangible assets and deposits on future asset purchases of $461,000, partially offset by proceeds received from an insurance recovery of $305,000."
        }, {
          "ID": "58964436_114",
          "Sentiment": "P",
          "Score": 2263,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "During FY 2020, the Company incurred approximately $2,271,000 of one-time costs associated with the review of strategic alternatives and the contested solicitation of proxies, compared with no comparable costs incurred during FY 2021."
        }, {
          "ID": "58964436_94",
          "Sentiment": "N",
          "Score": 2203,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "Franchise fee revenues decreased in FY 2021 compared to FY 2020 primarily as a result of a decrease in revenue resulting from fewer franchise stores in operation and the associated recognition of revenue over the term of the franchise agreement."
        }, {
          "ID": "58964436_136",
          "Sentiment": "P",
          "Score": 2122,
          "Category": "Financial",
          "Subcategory": "Dividend",
          "Content": "As discussed below, we have taken several defensive measures to maximize liquidity in response to the COVID-19 pandemic, including the suspension of our cash dividend, reducing expenses, extending payment terms with vendors, reducing production volume and deferring discretionary capital expenditures."
        }, {
          "ID": "58964436_119",
          "Sentiment": "P",
          "Score": 2097,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "Retail Operating Expenses Retail operating expenses decreased during FY 2021 compared to FY 2020, as a result of the temporary closure of all of our Company-owned stores for much of the three months ended May 31, 2020."
        }, {
          "ID": "58964436_141",
          "Sentiment": "P",
          "Score": 2041,
          "Category": "Financial",
          "Subcategory": "Dividend",
          "Content": "The increase in working capital was due primarily to our efforts to preserve liquidity during the COVID-19 pandemic, including the receipt of PPP funds and the suspension of our quarterly dividend."
        }, {
          "ID": "58964436_61",
          "Sentiment": "P",
          "Score": 1953,
          "Category": "Revenue",
          "Subcategory": "Geography",
          "Content": "As we expanded our geographical diversity to include regional centers and our franchise offerings to include frozen desserts, we have seen some moderation to our seasonal sales mix."
        }, {
          "ID": "58964436_49",
          "Sentiment": "P",
          "Score": 1864,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "Continued or prolonged disruption to the economy may result in, among other things: an increase in expense associated with obsolete inventory, an increase in bad debt expense, expense associated with the impairment of long-lived assets and intangible assets, an increase in store closures, and a decrease in new store openings."
        }, {
          "ID": "58964436_43",
          "Sentiment": "N",
          "Score": 1834,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "These borrowings allowed the Company to temporarily avoid workforce reduction measures amidst a steep decline in revenue and production volume."
        }, {
          "ID": "58964436_198",
          "Sentiment": "P",
          "Score": 1823,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "Rebates related to Company-owned locations are offset against operating costs."
        }, {
          "ID": "58964436_83",
          "Sentiment": "P",
          "Score": 1808,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "The increase in shipments of product to customers outside our network of franchise and licensed retail stores was primarily the result of sales associated with our strategic alliance with Edible."
        }, {
          "ID": "58964436_133",
          "Sentiment": "N",
          "Score": 1789,
          "Category": "Financial",
          "Subcategory": "Debt",
          "Content": "This change was primarily the result of debt forgiveness income being realized with no associated income tax expense and the revaluation of a portion of deferred tax assets as a result of the Company realizing a taxable loss during FY 2021 that can be carried back to prior periods with a higher effective income tax rate."
        }, {
          "ID": "58964436_185",
          "Sentiment": "P",
          "Score": 1754,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "We recorded an average expense of approximately $533,000 per year for potential uncollectible accounts over the three fiscal years ended February 28, 2021."
        }, {
          "ID": "58964436_106",
          "Sentiment": "P",
          "Score": 1747,
          "Category": "Financial",
          "Subcategory": "Expense",
          "Content": "During FY 2021, the Company also incurred approximately $280,000 of production labor costs associated with paying employees who abided by local stay at home orders related to COVID-19 public health measures."
        }, {
          "ID": "58964436_152",
          "Sentiment": "P",
          "Score": 1730,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "In comparison, investing activities used cash of $911,000 during FY 2020 primarily due to the purchases of property and equipment of $984,000 the result of investment in factory infrastructure improvements, partially offset by proceeds received on notes receivable of $146,000."
        }, {
          "ID": "58964436_4",
          "Sentiment": "N",
          "Score": 1718,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "Factors that could cause or contribute to these differences include those discussed below and elsewhere in this Annual Report on Form 10-K, particularly in Item 1A."
        }, {
          "ID": "58964436_124",
          "Sentiment": "P",
          "Score": 1681,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "See Note 7 to the financial statements for a summary of annual amortization of intangible assets based upon existing intangible assets and current useful lives."
        }, {
          "ID": "58964436_69",
          "Sentiment": "N",
          "Score": 1581,
          "Category": "Revenue",
          "Subcategory": "Product",
          "Content": "Efforts to reverse the decline in same store pounds purchased from the factory by franchised stores and to increase total factory sales depend on many factors, including new store openings, competition, the receptivity of our franchise system to our product introductions and promotional programs."
        }, {
          "ID": "58964436_51",
          "Sentiment": "P",
          "Score": 1572,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "The Company has been monitoring the frequently changing guidance on best safety practices and is rapidly integrating safety measures into the working environment."
        }, {
          "ID": "58964436_126",
          "Sentiment": "P",
          "Score": 1549,
          "Category": "Other",
          "Subcategory": "Other",
          "Content": "This increase was the result of an increase in production assets in service primarily resulting from the replacement of obsolete equipment or equipment at the end of its operating life."
        }],
        "Counts": {
          "Positive": 31,
          "Negative": 11,
          "Total": 42,
          "Categories": {
            "All": {
              "Positive": 31.0,
              "Negative": 11.0,
              "Total": 42.0,
              "PositivePercentage": 73.809523809523809523809523810,
              "NegativePercentage": 26.190476190476190476190476190
            },
            "Financial": {
              "Positive": 18.0,
              "Negative": 3.0,
              "Total": 21.0,
              "PositivePercentage": 85.71428571428571428571428571,
              "NegativePercentage": 14.285714285714285714285714290
            },
            "Revenue": {
              "Positive": 5.0,
              "Negative": 6.0,
              "Total": 11.0,
              "PositivePercentage": 45.454545454545454545454545450,
              "NegativePercentage": 54.545454545454545454545454550
            },
            "Other": {
              "Positive": 8.0,
              "Negative": 2.0,
              "Total": 10.0,
              "PositivePercentage": 80.0,
              "NegativePercentage": 20.0
            }
          },
          "Subcategories": {
            "All": {
              "Positive": 31.0,
              "Negative": 11.0,
              "Total": 42.0,
              "PositivePercentage": 73.809523809523809523809523810,
              "NegativePercentage": 26.190476190476190476190476190
            },
            "Earnings": {
              "Positive": 3.0,
              "Negative": 0.0,
              "Total": 3.0,
              "PositivePercentage": 100.0,
              "NegativePercentage": 0.0
            },
            "Income": {
              "Positive": 1.0,
              "Negative": 1.0,
              "Total": 2.0,
              "PositivePercentage": 50.0,
              "NegativePercentage": 50.0
            },
            "Debt": {
              "Positive": 2.0,
              "Negative": 1.0,
              "Total": 3.0,
              "PositivePercentage": 66.666666666666666666666666670,
              "NegativePercentage": 33.333333333333333333333333330
            },
            "Expense": {
              "Positive": 9.0,
              "Negative": 1.0,
              "Total": 10.0,
              "PositivePercentage": 90.0,
              "NegativePercentage": 10.0
            },
            "Product": {
              "Positive": 4.0,
              "Negative": 6.0,
              "Total": 10.0,
              "PositivePercentage": 40.0,
              "NegativePercentage": 60.0
            },
            "Cash Flow": {
              "Positive": 1.0,
              "Negative": 0.0,
              "Total": 1.0,
              "PositivePercentage": 100.0,
              "NegativePercentage": 0.0
            },
            "Dividend": {
              "Positive": 2.0,
              "Negative": 0.0,
              "Total": 2.0,
              "PositivePercentage": 100.0,
              "NegativePercentage": 0.0
            },
            "Geography": {
              "Positive": 1.0,
              "Negative": 0.0,
              "Total": 1.0,
              "PositivePercentage": 100.0,
              "NegativePercentage": 0.0
            },
            "Other": {
              "Positive": 8.0,
              "Negative": 2.0,
              "Total": 10.0,
              "PositivePercentage": 80.0,
              "NegativePercentage": 20.0
            }
          }
        },
        "PositiveSentimentPercentage": 73.809523809523809523809523810,
        "NegativeSentimentPercentage": 26.190476190476190476190476190,
        "OverallSentiment": "U"
      }
    },
    "type": "sentiment",
    "id": "f8ce5513-0dcd-41a6-81e8-3cd44313fc17"
  }
}

404 Not Found

Company not found

204 No Content

Company found but no data available

Code samples

@ECHO OFF

curl -v -X GET "https://services.last10k.com/v1/company/{cik}/sentiment?accessionNumber={string}"
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            // Request parameters
            queryString["accessionNumber"] = "{string}";
            var uri = "https://services.last10k.com/v1/company/{cik}/sentiment?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://services.last10k.com/v1/company/{cik}/sentiment");

            builder.setParameter("accessionNumber", "{string}");

            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
            "accessionNumber": "{string}",
        };
      
        $.ajax({
            url: "https://services.last10k.com/v1/company/{cik}/sentiment?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://services.last10k.com/v1/company/{cik}/sentiment";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                         @"accessionNumber={string}",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://services.last10k.com/v1/company/{cik}/sentiment');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
    'accessionNumber' => '{string}',
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
    # Request parameters
    'accessionNumber': '{string}',
})

try:
    conn = httplib.HTTPSConnection('services.last10k.com')
    conn.request("GET", "/v1/company/{cik}/sentiment?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
    # Request parameters
    'accessionNumber': '{string}',
})

try:
    conn = http.client.HTTPSConnection('services.last10k.com')
    conn.request("GET", "/v1/company/{cik}/sentiment?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://services.last10k.com/v1/company/{cik}/sentiment')

query = URI.encode_www_form({
    # Request parameters
    'accessionNumber' => '{string}'
})

if uri.query && uri.query.length > 0
    uri.query += '&' + query
else
    uri.query = query
end

request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body