Esempio n. 1
0
        /// <summary>
        /// Gets all verified public keys for a user.
        /// </summary>
        /// <remarks>
        /// https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
        /// </remarks>
        /// <param name="userName">The @ handle of the user.</param>
        /// <param name="options">Options to change API's behavior.</param>
        /// <returns>Lists the verified public keys for a user.</returns>
        public IObservable <PublicKey> GetAll(string userName, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(userName, "userName");
            Ensure.ArgumentNotNull(options, "options");

            return(_client.GetAll(userName, options).ToObservable().SelectMany(k => k));
        }
 /// <summary>
 /// Gets all public keys for the authenticated user.
 /// </summary>
 /// <remarks>
 /// https://developer.github.com/v3/users/keys/#list-your-public-keys
 /// </remarks>
 /// <returns>The <see cref="PublicKey"/>s for the authenticated user.</returns>
 public IObservable <PublicKey> GetAll()
 {
     return(_client.GetAll().ToObservable().SelectMany(k => k));
 }
 /// <summary>
 /// Gets all verified public keys for a user.
 /// </summary>
 /// <remarks>
 /// https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
 /// </remarks>
 /// <returns></returns>
 public IObservable <PublicKey> GetAll(string userName)
 {
     return(_client.GetAll(userName).ToObservable().SelectMany(k => k));
 }