I am trying to access movie info using themoviedb API as imdb seems like a lost cause.
They use a key which I replaced with *'s but from what I can see this should be all I need to do a simple search
so my code is very simple
TmdbAPI api = new TmdbAPI("***************************");
TmdbMovie[] movies = api.MovieSearch(batman);
But whenever I search I get the XMLParseException unless I outcomment the second line
There is a sample application, but I cant get it to run with VS2010 and I cant see how its doing the things any differently except that app reads the name of the movie from a textbox as mine will further down the road.
Looking at the issue tracker, there appears to be a problem with the returned XML since December 1st 2010 (if not earlier).
Related
I need to just search Yammer for a various string on the timeline and facing a few weird issues.
Using Nuget, I got the yammer.simpleapi package (Found the bug everyone was talking about and changed it from GET to POST) and I created an App on Yammer, but, this is where the fun starts.
I have a local page http://localhost/home/yammer which redirects to Oauth and then redirects to my app with the key and I retrieve basic user settings.
Now, this is where I get confused - I see if I refresh this page, I just get a blank response (I guess that the code is only good for one query?), but if I refresh the http://localhost/home/yammer - I sometimes get the correct response and sometimes I get nothing.
This is best shown in a recording I did - https://youtu.be/RqrAGiP7Rh4
This is really annoying me and I was wondering if anyone knows what is going on?
I would post code examples, but, there hasn't really been anything modified from the original yammer.simpleapi other than the keys.
The web example app is just working one time.
If you want to replay your page, you should save your YammerClient somewhere (or declare it in static)
I'm trying to create a Keynote Tag via the Revit 2012 API. However, I found now reference to creating a Keynote Tag anywhere on the internet or in the samples. I see that the BuiltInCategory.OST_KeynoteTags is part of the IndependentTag class and according to http://thebuildingcoder.typepad.com/files/guide-to-placing-family-instances-with-the-api.doc you need to use the TM_ADDBY_CATEGORY TagMode to create a Keynote. However, when you then try to change the new Tag via ChangeTypeId, you get an error.
Has anyone figured this out?
I haven't had a chance to try yet, but I'm thinking you're out of luck.
For the most part, you can't do things with the API that you can't do interactively in Revit. I did quickly test that you can't change the type of a multi-category tag to be a keynote tag.
While they're both IndependentTag elements, they are different Categories, and it's very rare in my experience where you can switch the category of a placed element.
I'm trying to get into the Amazon advertizing API to use with one of my apps. I heard recently that there were changes and needed an AssociateTag (broughtin from the affiliate program)
After using samples from this link
http://aws.amazon.com/code/2480?_encoding=UTF8&queryArg=searchQuery&x=0&fromSearch=1&y=0&searchPath=code&searchQuery=Advertising
and
http://flyingpies.wordpress.com/2009/08/13/signing-amazon-product-advertising-api-cwcf-part-2/
I can't seem to use those samples anymore. after some digging online I found that I was supposed to add an AssociateTag to the itemSource request variable, but I created a dummy login to facilitate that andthe output is pretty much the same. can anyone help me with this?
I had the exact same issue as I based my application on the flyingpies.wordpress example and couldn't get it to work by adding in the Associate Tag Id and the latest web service>
I downloaded this example:
http://aws.amazon.com/code/Product-Advertising-API/2481
And made some small changes and got it all working...
The main one changing the namespace to:
http://webservices.amazon.com/AWSECommerceService/2011-08-01
Throughout all the code......
I think I may have updated the code in a couple of other places and can help you if these errors occur..
When searching through files indexed using Windows Desktop Search,
it would be nice if I could see a snippet of the text within the
document that is related to the search text. However when I try to
retrieve "System.Search.QueryFocusedSummary" or
"System.Search.QueryFocusedSummaryWithFallback " I get a
"column name not found" error.
(The code that I am using to query this is shown in this question:
Microsoft Desktop Search - CONTAINS not returning results on windows server 2008 )
This is confusing because when you do a search within explorer,
you get the snippet of text in your results. So it's possible somehow.
According to this documentation http://msdn.microsoft.com/en-us/library/windows/desktop/bb760171%28v=vs.85%29.aspx
it should be retrievable, the same that AutoSummary is.
This question has already been asked on MSDN here:
http://social.msdn.microsoft.com/Forums/en-US/windowsdesktopsearchdevelopment/thread/dcfb40ea-b250-4294-80d0-727c7365745e/
but I'm hoping that the clever stackoverflow people can help me.
As a side note, I'm quite confused as to why this doesn't work, don't lots of
people need to index and search documents? Does everyone use Lucene and/or Solr
or Windows Search Server instead?
A colleague of mine ran into this problem recently. QueryFocusedSummary and QueryFocusedSummaryWithFallback are indeed not accessible via OLEDB. They are, however, accessible via Shell.
In the Windows SDK, there is a sample, $WIN_SDK/Samples/winui/shell/appplatform/ExplorerBrowserSearch, which will get you set up on using Shell functions to perform a search. From here, it should be trivial to add support for QueryFocusedSummary and QueryFocusedSummaryWithFallback via the Shell Property Keys PKEY_Search_QueryFocusedSummary and PKEY_Search_QueryFocusedSummaryWithFallback respectively.
Since you didn't post any code I have to speculate a bit...
I assume you are using OleDB/SQL to execute a query...
Neither QueryFocusedSummary nor QueryFocusedSummaryWithFallback are real columns and thus NOT available via OleDB/SQL !
The only columns available this way are AFAIK
AutoSummary
Contents
EntryID
GatherTime
Rank
Store
QueryFocusedSummary and QueryFocusedSummaryWithFallback are IIRC properties accessiable via COM or a Shell interface .
I have a facebook App that for some reason it got banned.
How can I find out programatically (FB C# SDK preferably) at login for instance that the application got banned?
There are no exceptions or other markers that I noticed so I could figure out this.
I am open to any ideas.
The app is not doing anything un-ethical but it pulls up a lot of data and there is a possibility that FB might not like that. So in order to keep it live, I want to know when the app got banned so that i can replace it on the fly with another one, until the issue gets resolved with th first one. FB gives you an answer only after 2+ weeks.
You might be able to use the installable field in the properties array from admin.getAppProperties outlined here: https://developers.facebook.com/docs/reference/rest/admin.getAppProperties/