public Contacts vimeo_contacts_getWhoAdded(string user_id, int? page, int? per_page, ContactsSortMethods sort) { string _sort = sort == ContactsSortMethods.Alphabetical ? "alphabetical" : sort == ContactsSortMethods.MostCredited ? "most_credited" : sort == ContactsSortMethods.Newest ? "newest" : sort == ContactsSortMethods.Oldest ? "oldest" : ""; Dictionary<string, string> parameters = new Dictionary<string, string>(); if (page.HasValue) parameters.Add("page", page.Value.ToString()); if (per_page.HasValue) parameters.Add("per_page", per_page.Value.ToString()); if (sort != ContactsSortMethods.Default) parameters.Add("sort", _sort); parameters.Add("user_id", user_id); var x = ExecuteGetRequest("vimeo.contacts.getWhoAdded", parameters); if (!IsResponseOK(x)) return null; return Contacts.FromElement(x.Element("rsp").Element("contacts")); }
//.getWhoAdded public Contacts vimeo_contacts_getWhoAdded(string user_id, ContactsSortMethods sort = ContactsSortMethods.Default, int? page=null, int? per_page=null) { return vimeo_contacts_getWhoAdded(user_id, page, per_page, sort); }