       (catch Exception e
         (log/error (format "Error posting activity %s to coracle" activity-json) e)))))
 
-(defn new-coracle-activity-storage [bearer-token url]
-  (CoracleActivityStorage. bearer-token url))
+(defn new-coracle-activity-storage
+  ([bearer-token url]
+   (CoracleActivityStorage. bearer-token url))
+  ([]
+   (new-coracle-activity-storage (:coracle-bearer-token config/environment) (:coracle-post-uri config/environment))))
 
 (defrecord DBActivityStorage []
   ActivityStorage

       (assoc :entity :activity)
        storage/pg-store!)))

(defn store-activity!
  ([activity-storage entity]
   (let [entity-to-activity-mapping-fn (get-mapping entity)]

            [objective8.back-end.storage.storage :as storage]
            [objective8.utils :as utils]
            [objective8.back-end.domain.objectives :as objectives]
            [clojure.tools.logging :as log]
            [objective8.config :as config]))

(defn objective->activity [objective]
  {"@context"  "http://www.w3.org/ns/activitystreams"
