Ejemplo n.º 1
0
        /// <summary>
        ///     Allows you to confirm front end (Javascript Widget) verification results
        ///     See: "https://developers.neverbounce.com/v4.0/reference#widget-poe-confirm"
        /// </summary>
        /// <param name="model"> POEConfirmRequestModel</param>
        /// <returns>POEConfirmResponseModel</returns>
        public async Task <POEConfirmResponseModel> Confirm(POEConfirmRequestModel model)
        {
            var client = new NeverBounceHttpClient(_client, _apiKey, _host);
            var result = await client.MakeRequest("POST", "/poe/confirm", model);

            return(JsonConvert.DeserializeObject <POEConfirmResponseModel>(result));
        }
Ejemplo n.º 2
0
        public static async Task <POEConfirmResponseModel> Confirm(NeverBounceSdk sdk)
        {
            var model = new POEConfirmRequestModel();

            model.email = "*****@*****.**";
            model.confirmation_token = "e3173fdbbdce6bad26522dae792911f2";
            model.transaction_id     = "NBPOE-TXN-5942940c09669";
            model.result             = "valid";
            return(await sdk.POE.Confirm(model));
        }