rebuilding with externalized twitter request string, removing more compiled stuff from version control
This commit is contained in:
parent
e25c46b4f1
commit
a26c279ad3
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
*~
|
||||
|
||||
*.suo
|
||||
*.cache
|
||||
*.FileListAbsolute.txt
|
||||
*.dll
|
||||
*.pdb
|
||||
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Web;
|
||||
@ -11,11 +12,13 @@ namespace TwitterPractice.Controllers
|
||||
public class HomeController : Controller
|
||||
{
|
||||
private static string title = "Twitter Practice!";
|
||||
private static string requestTemplate =
|
||||
"https://api.twitter.com/1/statuses/user_timeline.json" +
|
||||
"?include_entities=true" +
|
||||
"&include_rts=true" +
|
||||
"&screen_name={0}";
|
||||
private static string requestTemplate;
|
||||
|
||||
public HomeController()
|
||||
: base()
|
||||
{
|
||||
requestTemplate = ConfigurationManager.AppSettings["TwitterRequestTemplate"];
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
|
@ -38,6 +38,9 @@
|
||||
<HintPath>..\packages\EntityFramework.4.1.10331.0\lib\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<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.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" />
|
||||
|
@ -15,6 +15,7 @@
|
||||
<add key="webpages:Version" value="1.0.0.0"/>
|
||||
<add key="ClientValidationEnabled" value="true"/>
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
|
||||
<add key="TwitterRequestTemplate" value="https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name={0}" />
|
||||
</appSettings>
|
||||
|
||||
<system.web>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user