Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

Commented Feature: Implement : [account/settings][POST] [1725]

$
0
0
Reference : https://dev.twitter.com/docs/api/1.1/post/account/settings

Parameters :
- trend_location_woeid
- sleep_time_enabled
- start_sleep_time
- end_sleep_time
- time_zone
- lang
Comments: ** Comment from web user: linvi **

Generate Timezone Enum

foreach (var t in TimeZoneInfo.GetSystemTimeZones())
{
var name = t.DisplayName;
var regex = new Regex(@"\(UTC([\+\-]\d\d:\d\d)?\) ");
var result = regex.Replace(name, string.Empty);
result = result.Replace("(", string.Empty);
result = result.Replace(")", string.Empty);

var regex2 = new Regex(@"(, | - | & | +|[ ,\+\-'\.])");
result = regex2.Replace(result, "_");

Debug.WriteLine(string.Format("/// <summary>\r\n/// {0}\r\n/// <summary>\r\n{1},\r\n", t.DisplayName, result));
}


Viewing all articles
Browse latest Browse all 4126

Trending Articles