rebuilding with externalized twitter request string, removing more compiled stuff from version control

cat-town
Dan Buch 13 years ago
parent e25c46b4f1
commit a26c279ad3

4
.gitignore vendored

@ -1,3 +1,7 @@
*~
*.suo *.suo
*.cache *.cache
*.FileListAbsolute.txt *.FileListAbsolute.txt
*.dll
*.pdb

@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Specialized; using System.Collections.Specialized;
using System.Configuration;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using System.Web; using System.Web;
@ -11,11 +12,13 @@ namespace TwitterPractice.Controllers
public class HomeController : Controller public class HomeController : Controller
{ {
private static string title = "Twitter Practice!"; private static string title = "Twitter Practice!";
private static string requestTemplate = private static string requestTemplate;
"https://api.twitter.com/1/statuses/user_timeline.json" +
"?include_entities=true" + public HomeController()
"&include_rts=true" + : base()
"&screen_name={0}"; {
requestTemplate = ConfigurationManager.AppSettings["TwitterRequestTemplate"];
}
public ActionResult Index() public ActionResult Index()
{ {

@ -38,6 +38,9 @@
<HintPath>..\packages\EntityFramework.4.1.10331.0\lib\EntityFramework.dll</HintPath> <HintPath>..\packages\EntityFramework.4.1.10331.0\lib\EntityFramework.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="Newtonsoft.Json.Net35">
<HintPath>..\..\vendor\Newtonsoft.Json.Net35.dll</HintPath>
</Reference>
<Reference Include="System.Data.Entity" /> <Reference Include="System.Data.Entity" />
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> <Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />

@ -15,6 +15,7 @@
<add key="webpages:Version" value="1.0.0.0"/> <add key="webpages:Version" value="1.0.0.0"/>
<add key="ClientValidationEnabled" value="true"/> <add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/> <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
<add key="TwitterRequestTemplate" value="https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&amp;include_rts=true&amp;screen_name={0}" />
</appSettings> </appSettings>
<system.web> <system.web>

Loading…
Cancel
Save