Sha256: 8d1968f442070330405e2961a65bf209e4b168a136d858648897450602ef7b19

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

module OnlinegamesInfoConnect
	module OauthFriends

		def friends_index(user)
			user.token.get("/api/friends").parsed
		end

		def friends_show(user, friend_id)
			user.token.get("/api/friends/#{friend_id}").parsed
		end

		def friends_destroy(user, friend_id)
			user.token.delete("/api/friends/#{friend_id}").parsed
		end

		def friends_create(user, to_char_id, to_unknown)
			return user.token.post("/api/friends", {params: {to_char_id: to_char_id, to_unknown: to_unknown}}).parsed
		end

		def friends_confirm(user, friend_id)
			return user.token.post("/api/friends/#{friend_id}/confirm").parsed
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onlinegames_info_connect-0.0.1 lib/onlinegames_info_connect/oauth_friends.rb