lib/coop/api_object/status.rb in coop-1.0.0 vs lib/coop/api_object/status.rb in coop-1.0.1
- old
+ new
@@ -43,10 +43,11 @@
# Returns String of new status' URL
def post_as_cobot!(message, api_key)
Coop.post(
"/groups/#{self.group_id}/statuses",
query: { status: message, key: api_key },
- headers: { "Accept" => "application/xml" }
+ headers: { "Accept" => "application/xml" },
+ basic_auth: nil
).headers["Location"]
end
# Public: A poor man's Arel for querying the status API
#
\ No newline at end of file