(function (angular) {

  angular.module('angular-keenio.services')

    .value('tbkKeenDefaultConfig', {
      projectId: 'YOUR_PROJECT_ID',   // String (required always)
      writeKey: 'YOUR_WRITE_KEY',     // String (required for sending data)
      readKey: 'YOUR_READ_KEY',       // String (required for querying data)
      protocol: 'https',              // String (optional: https | http | auto)
      host: 'api.keen.io/3.0',        // String (optional)
      requestType: 'jsonp'            // String (optional: jsonp, xhr, beacon)
    })

    .provider('tbkKeenConfig', [function () {
      var config = {};

      this.projectId = function (projectId) {
        config.projectId = projectId;
        return this;
      };
      this.writeKey = function (writeKey) {
        config.writeKey = writeKey;
        return this;
      };
      this.readKey = function (readKey) {
        config.readKey = readKey;
        return this;
      };
      this.protocol = function (protocol) {
        config.protocol = protocol;
        return this;
      };
      this.host = function (host) {
        config.host = host;
        return this;
      };
      this.requestType = function (requestType) {
        config.requestType = requestType;
        return this;
      };

      this.$get = ['tbkKeenDefaultConfig', function (defaultConfig) {
        return angular.extend(defaultConfig, config);
      }];
    }])

    .factory('tbkKeen', ['$window', function ($window) {
      return $window.Keen;
    }])

    .factory('tbkKeenClient', ['tbkKeen', 'tbkKeenConfig', function (Keen, KeenConfig) {
      return new Keen(KeenConfig);
    }])
  ;

})(angular);

@@ -1637,16 +1637,454 @@
 %0A    %7D%5D)
+%0A%0A    .factory('tbkKeenHttpGet', %5B%0A      'tbkKeenConfig',%0A      'tbkKeenClient',%0A      function (keenConfig, keenClient) %7B%0A        return function (queryTemplate, params, callback) %7B%0A          var query = queryTemplate.replace('%3Cproject_id%3E', keenConfig.projectId);%0A%0A          var url = keenConfig.protocol + '://' + keenConfig.host + query;%0A%0A          return keenClient.get(url, params, keenConfig.readKey, callback);%0A        %7D%0A      %7D%5D)
 %0A  ;%0A%0A%7D)

add service tbkKeenHttpGet