|
I may be beating a dead horse here but I am experimenting a bit with the CodeProject API creating a C# wrapper for it to (perhaps some day) be used in a Xamarin app as I am keen in learning Cross-Platform development with Xamarin.
Anyhow I have things pretty much worked out but I am curious about the FormMessages API. Both calls in that API require a ID to be passed (forum ID or thread ID) but I am at a loss as to get those ID's... Is there a way that I can retrieve those ID's through the API (I.E. am I missing something blatantly obvious) or is that still missing from the API? If so then how would I get access to those ID's?
Regards,
Jan
|
|
|
|
|
A forum ID can be found from the URL of a forum. Here is the full list of forums.[^]. For example ".NET Framework" is 1650.
Each message has a "Permalink" whose URL contains an ID. The "thread ID" is the permalink ID of the top-level message, the thread.
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
I was afraid of that... Having to extract the forum ID's from links of the forum overview page kind of defeats the purpose of have an API. I know the API is "early beta" but it has been that way for so long that I expect it is not going to get updated any time soon.
Well... I will figure out if, and if so how I am going to deal with this.
Thanks for pointing me to the forum overview page.
Regards,
Jan
|
|
|
|
|
Damn, that is an obvious omission. I'll try and find some time to add something to list the common forums. In the mean time, you can look at Discussion Boards[^] to get a list of these.
I won't be able to list ALL the forums as the comments at the end of each article is a forum as well.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
Thanks. Good to hear that there is still activity on the API development as time permits. For now I decided to "mock" an API call to return a list of available forums (which will return a static ItemSummary list for now). When you get around to implementing something it should not be to difficult to replace that mock.
As for the forums at the end of an article a pointer to that should ultimately be returned through the GET V1/Articles call. That would probably mean an extra field in the ItemSummary but that way they are accesible as well.
Regards,
Jan
|
|
|
|
|
Is the api down at the moment?
|
|
|
|
|
In the my/articles api, there doesn't appear to be an element that represents the number of views or downloads. Is there a tangible reason for these to be omitted?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
It seems to be down already for a few days.
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
I guess the new and improved deployment script still has some bugs...
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Nope, just making sure everybody uses them.
|
|
|
|
|
It's always that one person who insists on doing things the old way, eh?
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Using the My API, you can get your articles, blog posts and tips. But references are missing there. I think it would be useful if they were there too, so could they please be added?
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
I'm not entirely sure what the ObjectTypeName , ObjectId and Topic members of NotificationViewModel point at. When I tested them for a notification for a comment to an answer, I got "Article" for ObjectTypeName, the answer ID for ObjectId and "Comment" for Topic. But when testing the same for a message on an article forum, I got "Forum Message" for ObjectTypeName, the message ID for ObjectId and "Forum Message" for Topic. This looked a bit odd to me because it was entirely different for the comment to the answer.
How do these properties actually work?
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
|
Sorry, we have an error in our new and improved deployment script that is resulting in the incorrect configuration file being deploy. I'm doing a deploy the tried and true way and the site should be up in a few minutes.
|
|
|
|
|
Thanks Site is up and running.
asthanarht
|
|
|
|
|
Matthew Dennis wrote: new and improved deployment script
Not so improved now, is it?
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
http://api.codeproject.com/[^] shows me Server Error in '/' Application. (I cannot give more info about the error message I get because the server configuration appears to specify that it isn't viewable on remote devices.)
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
From the docs:
Quote: Gets or sets the link to the full item on the API.
When I actually run an API query, I've found that this field is always empty. Is that a bug, or is it just something that still has to be implemented?
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
This hasn't been implemented yet.
|
|
|
|
|
I had no idea what the ContentType field in ItemSummary meant, so I decided to fetch data from the API and show me the content type. I'm quite confused: for QA questions it returns "Article", and for forum messages, sometimes it returns "ForumMessage" and sometimes "Forum Message".
What exactly does ContentType return?
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
modified 1-Jan-16 5:09am.
|
|
|
|
|
In our system, we use Articles for Questions and Answers, so the Article Content Type is correct, if misleading.
As to the ForumMessages, I'll have to look into that.
|
|
|
|
|
Hi Owner. Code project api is again down and i am getting asp.net death yellow page.
Can some one look into this issue. I just launched android app in market and its based on heavy used of API https://play.google.com/store/apps/details?id=asthanarht.cpxamarin[^]
Please fix this issue, as app is already in production please make sure api should keep running.
Thanks
asthanarht
|
|
|
|
|
It's up. Our apologies.
cheers
Chris Maunder
|
|
|
|
|
Well, with my API wrapper continuing apace, one of the things that it would be great to be able to get is the content of a particular article for display, along with the downloads.
|
|
|
|