lib/amee/session.rb in hookercookerman-amee-0.0.6 vs lib/amee/session.rb in hookercookerman-amee-0.0.7

- old
+ new

@@ -152,12 +152,11 @@ # @return [String] locaion of the new resource def create_profile_item(path, uid, options = {}) @cache.clear api_call(:post, "create.profile_item", path, - :query => {:dataItemUid => uid}.merge(options[:fields])) do |response| - location = response.headers["location"] - location.is_a?(Array) ? location.first : location + :query => {:dataItemUid => uid, :representation => "full"}.merge(options[:fields])) do |response| + Amee::ProfileApi::ProfileItem.from_hash(response, self) end end # does not create a profile object compared to the create version # @return [Hash] \ No newline at end of file