DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Forum: DNN Platform API

You are not authorized to create a new topic
13 Subscribed to this forum
Page 1 of 3123 > >>

Topics

Replies
Rating
Status
Views
Subscribers
Last Post

How to Apply Cache in API    

Started By  chetan kawale
Hii team, I am using DNN API to fetch frequently data by using Ajax. So I did't find answer How to cache API in DNN. Please suggest    public class StockTickerController : DnnApiController     {           [HttpGet]         public HttpResponseMessage DSIJIncludeTickerGraph()         { return Request.CreateResponse(HttpStatusCode.OK, new { CurrentBseNseValue = AllCurrentBseNseValueVr });           }     }
4 1268 2
by  Daniel ValadasJump to last post
4/2/2024 2:23 PM

Web API External    

Started By  Omar Sánchez
The module when consuming a local web api (http://localhost/ConsultaVarias/Api/Distrito) it gives me the following error: System.Threading.Tasks.Task`1[System.Web.Mvc.ActionResult]
6 466 1
by  Will StrohlJump to last post
10/30/2023 5:15 PM

DNN v9.12.00 Web API    

Started By  Martin
(Topic has multiple pages1 2 )
Hi, I have built for testing purposes a simple Web API, which works perfect locally but when I'm trying to reach the endpoint (by Postman or by Module) in the productive online version, I always get the error '401 - Unauthorized: Access is denied due to invalid credentials.'. The credentials are exactly the same in local and online version. ------------------------ public class ExchangeOrderController : DnnApiController {     [HttpGet]     [DnnAuthorize(StaticRoles = 'ExchangeOrderDK')...
18 1737 3
by  Will StrohlJump to last post
8/3/2023 12:43 PM

Connect to DNNAPI    

Started By  Deleted User
We used to pull visualizers from the dnnapi into an external application using a bearer token token that never expired. After upgrading to 9.10 and moving our host, we now need an auth token, and I'm not finding any documentation anywhere on how to obtain it. To help with additional info, we are on the Evoq version of DNN.
1 562 1
by  Will StrohlJump to last post
6/23/2023 5:26 PM

Programmatically log in a user    

Started By  pdreid
Hello, I'm working on a page where I want to programmatically log a user in from the code behind, outside the context of creating an official authentication provider (if that's possible).  My code creates and updates users correctly, and the admin logs show the login event for the correct user with a 'login success' message; but the website still shows the login link rather than the username in the utility nav, and if I try to access a protected page it's not recognizing the user as logged in...
2 1641 2
by  Will StrohlJump to last post
5/31/2023 3:51 AM

DNN v9.10.02 Web API    

Started By  shyamal majumder
(Topic has multiple pages1 2 )
Team,  I have a small query, Suppose I have created 1 web api say getcustomer() DesktopModules/Leads/API/LeadsDisposition/getcustomer Now I have 2 domain 1 is main domain say www.maindomain.com and other is subdomain say www.subdomain.maindomain.com Now can we set api address like www.subdomain.maindomain.com/DesktopModules/Leads/API/LeadsDisposition/getcustomer instead of  www.maindomain.com/DesktopModules/Leads/API/LeadsDisposition/getcustomer Inshort can we set base ur...
10 3015 2
by  Will StrohlJump to last post
1/3/2023 11:16 AM

DNN.ClientDependency Not Available    

Started By  Hans Zassenhaus
I receive the following error messages after opening DNN Platform V9,6,2 in MS Visual Studio 2019 and 2022: Severity    Code    Description    Project    File    Line    Suppression State Error        NuGet Package restore failed for project DNN Platform\DotNetNuke.Web: Unable to find version '1.9.2.7' of package 'Dnn.ClientDependency'.   C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'C:\Program Files (x86)\Microsoft SDKs...
5 1640 2
by  Will StrohlJump to last post
11/30/2022 12:47 PM

cross (Cors) issue    

Started By  ricky1368
Light-Duty-Wreckers:1 Access to XMLHttpRequest at 'https://www.test.net/api/api/Fleet/GetFleetListtype=json' from origin 'https://www.dnndomain.net' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I use ajax jquery to consume external api (webapi written with mvc/c), and have above issues. I already added the header on webconfig, and still working ...need helps ...
4 3108 2
by  germyrinnJump to last post
10/5/2021 1:49 AM

GetUpdateLink or gettable    

Started By  Colder
after the update to 9.9.0 the log is full with entries of the type general exception. Does anyone have any idea what I can do Summary: AbsoluteURL / API / personabar / serversummary / GetUpdateLink DefaultDataProvide AbsoluteURL: / API / personabar / serversummary / GetUpdateLink DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID: a4ad6ad5-e531-4a86-8a3f-339225c2abfa AssemblyVersion: PortalId: -1 UserId: -1 TabId: -1 RawUrl: Referrer: UserAgent: Exce...
2
5570 2
by  Sebastian LeupoldJump to last post
4/2/2021 8:49 AM

Update Scheduler    

Started By  mikaelldnn
Hi, I'm automatically updateing a SchedulerHistory item after a custom scheduler has been issued. I want to do this to set the next start time based on when the scheduler was created. As it is by default, if I manually run the scheduler it just adds the frequency. So for example, if I have it scheduled to run at 4AM every day but then I manually run it at 8:30AM the next start time will be 8:30AM the next day and not 4AM. So what I'm doing is to calculate the next start time based on the Sc...
2 2273 2
by  Will StrohlJump to last post
12/17/2020 11:20 AM
You are not authorized to create a new topic
Page 1 of 3123 > >>


RSS Feed Available

These Forums are dedicated to the discussion of DNN Platform.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved