|
Gone quiet. Was wondering if any changes were in the pipeline?
Still interested.
Cheers,
Ron
|
|
|
|
|
Updated site UI and further work to the OAuth flows were the order of the week. Just deployed today.
cheers
Chris Maunder
|
|
|
|
|
Hi Matthew,
Just pulling down my\messages and noticed that parentId isn't populated.
Also, have you considered having the messages nested (parent-child)? Just a suggestion.
rg
|
|
|
|
|
|
Would it be possible to get a numberOfMessages field?
So, if I have a Question that has 4 replies I would see something like:
"numberOfMessages":4
Cheers,
Ron
|
|
|
|
|
Since I'm using the same code that populates the Questions list on CodeProject, I should be able to add the number of answers and if it has a solution marked Accepted.
I may be changing the structures being form Messages and Questions to avoid confusion as to which fields have meaning, instead of trying to make one structure fit all.
|
|
|
|
|
Chris or Matthew,
What are the terms and conditions of using this data and the CodeProject name?
If one were to create a mobile app, can the word "CodeProject" be used? Logos? etc. Or, do you plan on going the "powered by CodeProject" route?
Thanks
Ron
|
|
|
|
|
I'm checking with Chris.
Please be advised, this is Beta, or even pre-Beta stuff, so any and everything can change so check the site for news.
|
|
|
|
|
No worries, Matthew. Understood.
|
|
|
|
|
First of all, fantastic news on your new API.
Would it be possible to get a Forum/all or Forum/list method, to return a name/value pair collection?
Thanks,
Ron
|
|
|
|
|
Ooh, that's a great idea. I like that. So, ++1 from me.
|
|
|
|
|
I hope you are looking for the discussion and programming forums as each article also has a forum.
It is something I thought I should add as well, but finding the time to squeeze it in ...
Matthew
|
|
|
|
|
I'm assuming "discussion and programming forums" refers to the forums we are now in (on the web site).
Just looking for a way to present a list of Forums that a user may want to subscribe to, hence the name/value pair collection.
rg
|
|
|
|
|
On the related note - I can see the ID (1536756) for the Soapbox (and other forums) from its URL, but not sure about the Lounge and the Insider (and a couple of others).
Of course, as you said, we will be having a list of them later, but can you please paste the IDs for the Lounge, the Insider and the Weird and the Wonderful, so that I can try get the posts for them as well?
[EDIT]
Just noticed fid URL parameter while creating a new thread (and several other actions). I think that is it.
[/EDIT]
Thank you.
Your time will come, if you let it be right.
modified 7-Oct-14 1:44am.
|
|
|
|
|
You are correct. That is the value you want.
|
|
|
|
|
The Client Registration page says that you can have up to 8 Client IDs. This made me wonder:
Do you have to use a different Client ID for each application that uses the API?
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
That is the idea, so that if your Client Credentials for one app are compromised, you can invalidate them without affecting your other applications. The alternate is to have one and invalidate all your apps.
Furthermore, the OAuth Authorization Flow and Implicit Grant flows require a redirection URL which is unique to each app for security reasons.
The Resource Owner Password Flow is less secure than the other two, and is not recommended for most applications. In the future, we may restrict its use to those clients and applications we can verify as being secure, and a web app is not a secure app.
I would recommend using the Implicit Grant flow for any Web or JavaScript applications.
|
|
|
|
|
Ok, thanks for the explanation!
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
I've just gone to the API site and it's showing the standard ASPX exception.
|
|
|
|
|
There was a change made to common code that broke the site. Should be good now.
|
|
|
|
|
Is there any way to have hierarchical relationship between the forum messages? I can see all messages for a thread or a forum, but not sure how I can relate them like "this message is a reply to that one". Perhaps some field like ParentMessageID would be helpful.
Am I missing something?
[EDIT]
Also, not sure that the rating and votes for messages are getting populated properly in the response.
Also, the URL against the WebsiteLink field starts with "//", but that's ok, I guess.
[/EDIT]
Whether I think I can, or think I can't, I am always bloody right!
modified 30-Sep-14 1:14am.
|
|
|
|
|
Yes, that needs correction. That's what I get for trying to re-use a non-hierarchical class to display hierarchical data.
Need to add ParentId, and ThreadId at a minimum. I could add indent level as well.
The messages are displayed in the order to display them in discussion order, but without the above properties it is difficult to do so.
I'll fix this today or tomorrow.
Also, the WebsiteLink should be starting with http://www.codeproject.com. I'll fix this as well.
|
|
|
|
|
I've made the change and deployed. See the API Documentation and Change Log for details.
Basically, ParentId has the Id of the Parent Message, ThreadId has the Id of the original message for the discussion thread and IndentLevel indicates the hierarchical level of the message in the discussion thread,
Messages are displayed in discussion order, so just indenting the messages using the IndentLevel value will result in a display similar to that in the CodeProject Forums.
|
|
|
|
|
Thanks for the update.
Agent__007 wrote: Also, not sure that the rating and votes for messages are getting populated properly in the response. But I can't see the rating and votes getting populated correctly for the forum messages.
Whether I think I can, or think I can't, I am always bloody right!
|
|
|
|
|
Indeed, my previous message which you voted on does not have any votes showing.
I'm looking into it.
|
|
|
|