Here called paypal Rest API using System.Net.Http.HttpClient for OAuth 2.0 access token try { // ClientId of your Paypal app API string API ClientId = " ASCxaD7FzuvGbX-xxxxxxxx.....xxxxxxxxxxx-6RZDgwLuOyrCsy3 " ; // secret key of you Paypal app API string API Secret = " ENldyFXuW46R7Wv0 xxxxxxxx.....xxxxxxxxxxx ee8pyH8 " ; using ( var client = new System.Net.Http. HttpClient ()) { var byteArray = Encoding .UTF8.GetBytes( API ClientId + ":" + API Secret ); client.DefaultRequestHeaders.Authorization = new Headers. AuthenticationHeaderValue ( "Basic" , Conv...
Implement an Interface with Generic Methods namespace Win.Data { // Created Interface for field of table public interface IFieldTable { string Id { get ; set ; } DateTime TimeStamp { get ; set ; } string User { get ; set ; } string View { get ; set ; } string Name { get ; set ; } //string QData { get; set; } } // FieldString class inhirated from IFieldTable public class FieldString ...
try { //Creating the object of MailMessage MailMessage message = new MailMessage(); //Creating the object of SmtpClient SmtpClient smtp = new SmtpClient(); //To Emial Address message.To.Add(new MailAddress("To Email Address")); //From Email Address message.From = new MailAddress("From Email Address"); //It is a subject of your email mess...
Comments
Post a Comment