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

This commit is contained in:
Dan Buch 2011-07-31 22:06:23 -04:00
parent e25c46b4f1
commit a26c279ad3
9 changed files with 16 additions and 5 deletions

4
.gitignore vendored
View File

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

View File

@ -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()
{ {

View File

@ -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" />

View File

@ -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>