|
Hi,
I just thought to share with you a sample application with a portable library for CodeProject API Wrapper.
C# CodeProject API Wrapper[^]
Ranjan.D
|
|
|
|
|
Hi,
I just have a small question on non-redirect OAuth Flow.
I have registered in CodeProject Web API Client Settings with a dummy HTTPS URL.
When I am using the client id and secret key with in a console application, I do get the access token but while making a request, say to get my articles, the request fails with a Unauthorized Access.
Currently it works only for other API's that is the general CodeProject API but it's failing for My API.
Thanks,
Ranjan.D
modified 21-Feb-15 17:58pm.
|
|
|
|
|
|
Currently as I understood there's no way to filter the articles by date range when we are using GetArticles API.
Could you incorporate the article filtering by created and/or modified date in addition to other filters?
I will be happy to see these changes. I would rather use it in IOT Challenge
Thanks,
Ranjan.D
modified 12-Feb-15 17:43pm.
|
|
|
|
|
Hi,
I'm trying to get an access token and sends a request for authorization:
https://api.codeproject.com/Account/Authorize?client_id=92mWWELc2DjcL-6tu7L1Py6yllleqSCt&redirect_uri=http%3A%2F%2Foauthproxy.nemiro.net%2F&response_type=code
But the server returns an error:
invalid_request
Why?
PS: For demo data no errors:
https://api.codeproject.com/Account/Authorize?client_id=JkOnJ9zIQ1vWvP3FvsJVx-3iOnSd-6a-&redirect_uri=https%3A%2F%2Fapi.codeproject.com%2FSamples%2FMyApi%2F&response_type=code
Docendo Discimus
|
|
|
|
|
Your redirect url must start with https:// for security reasons.
|
|
|
|
|
Yes! It works!
Thanks!
Docendo Discimus
|
|
|
|
|
When fetching the newest questions through the API, for 5/25 questions, the author name was empty and the ID was 0:
[{"name":"","id":0}]
That's weird, because I checked and the user accounts are not deleted or something.
It seems like all members with the name "Member NNNNNN" are returned like this.
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
I'll have a look when I get back from vacation on Monday. 
|
|
|
|
|
Have you been able to find the cause? I'm still encountering the issue.
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
It's a PureBasic language.
Who can I contact with that?
Or I want too much?
P.S. Language isn't so new It's new for CodeProject.
|
|
|
|
|
|
I decided to do a single HTML page that displays answer statistics, using the API (it's for fun, to get the idea of the APIs)...
Gone to register a secret key, but the Redirect URL, got me...
What it's about?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
As explained in the documentation, the CodeProject API uses OAuth 2 for Authorization. The redirect URL is the URL that you want the Authorization Server to redirect to, once it has asked CodeProject to Authenticate the user.
There is a link in the documentation to the OAuth 2 specification that explains this better than I can in a message.
If you plan to use one of the Flows that do not use browser redirection, then any valid url will do. Keep in mind that we may be removing the non-redirect Flows for security reasons.
|
|
|
|
|
Thank you...
What are you saying here, that I can not create a single-page, non-hosted HTML/JavaScript application...Or even a JavaScript based Chrome extension...
I consider it as a lack of possibilities...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Please look at any of the first four samples at [^].
These don't use the redirect URL. Just enter any valid https URL when you register.
Matthew
|
|
|
|
|
I'm working on an application using the API that checks every 30 seconds whether there are new questions posted and if yes, it shows a notification balloon. But now I thought that it might not work if API data is cached for a long time, so I'm asking that here now.
Is API data cached? And if yes, for how long?
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
The API uses the same code to list information that the main site does, so you should see changes almost immediately.
|
|
|
|
|
Great, thanks!
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
Imagine if one out of ten-thousand CP users were all running software that accessed the site every thirty seconds: assuming 11 million members, that's 1100 users ... call it 1000; so, in 24 hours that would be 2,880,000 accesses.
«OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. » Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."
|
|
|
|
|
That's true. But I think that isn't going to be a problem for the API. There are always 30k-50k CP members online according to the top-bar, so that's even more requests per 24 hours.
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
What you're asking about is what would be the default behavior.
It depends on what you're using to call this "API" and how you're calling it. Some jQuery stuff will cache and others won't.
You also have control over what is cached and what isn't in your ASP.NET code.
|
|
|
|
|
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
|
|
|
|