private void SetPostmarkMeta(RestBase request) { request.AddHeader("Accept", "application/json"); request.AddHeader("Content-Type", "application/json; charset=utf-8"); request.AddHeader("X-Postmark-Server-Token", ServerToken); request.AddHeader("User-Agent", "Postmark.NET"); }
private void SetPostmarkMeta(RestBase request) { request.AddHeader("Accept", "application/json"); request.AddHeader("Content-Type", "application/json; charset=utf-8"); request.AddHeader("X-Postmark-Server-Token", ServerToken); request.AddHeader("User-Agent", "Postmark.NET 1.x (" + this.GetType().AssemblyQualifiedName + ")"); }
private void SetTwitterClientInfo(RestBase request) { if (_info == null) { return; } if (!_info.ClientName.IsNullOrBlank()) { request.AddHeader("X-Twitter-Name", _info.ClientName); request.UserAgent = _info.ClientName; } if (!_info.ClientVersion.IsNullOrBlank()) { request.AddHeader("X-Twitter-Version", _info.ClientVersion); } if (!_info.ClientUrl.IsNullOrBlank()) { request.AddHeader("X-Twitter-URL", _info.ClientUrl); } }