Ejemplo n.º 1
0
        /// <summary>
        /// create
        /// </summary>
        ///
        /// <param name="type"> The type </param>
        /// <param name="friendlyName"> The friendly_name </param>
        /// <param name="certificate"> The certificate </param>
        /// <param name="privateKey"> The private_key </param>
        /// <param name="sandbox"> The sandbox </param>
        /// <param name="apiKey"> The api_key </param>
        /// <param name="secret"> The secret </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Credential </returns>
        public static CredentialResource Create(CredentialResource.PushServiceEnum type, string friendlyName = null, string certificate = null, string privateKey = null, bool?sandbox = null, string apiKey = null, string secret = null, ITwilioRestClient client = null)
        {
            var options = new CreateCredentialOptions(type)
            {
                FriendlyName = friendlyName, Certificate = certificate, PrivateKey = privateKey, Sandbox = sandbox, ApiKey = apiKey, Secret = secret
            };

            return(Create(options, client));
        }
 /// <summary>
 /// Construct a new CreateCredentialOptions
 /// </summary>
 /// <param name="type"> The type </param>
 public CreateCredentialOptions(CredentialResource.PushServiceEnum type)
 {
     Type = type;
 }