//Update a friend public static void PutFriend(string friendName, Friend friend, PostFriendCallback callback) { RestClient.Put($"{databaseURL}friend/" + friendName + ".json", friend).Then(response => { callback(); }); }
//Create a Friend public static void PostFriend(Friend friend, string friendName, PostFriendCallback callback) { RestClient.Put <Friend>($"{databaseURL}friend/{friendName}.json", friend).Then(response => { callback(); }); }