lib/socialcastr/api.rb in socialcastr-0.2.7 vs lib/socialcastr/api.rb in socialcastr-0.2.8
- old
+ new
@@ -16,9 +16,13 @@
@format = format
@endpoint = "https://#{domain}/api/"
return self
end
+ def profile
+ @profile ||= Socialcastr::Community.parse(post("authentication", {:email => @username, :password => @password })).first.profile
+ end
+
def get(path, args={})
https_request(:get, path, args)
end
def put(path, args={})