Home
»
Community Groups
»
Sitefinity
»
Front- & Back-End Development
»
Front- & Back-End Development
»
Use API from other (non web) app?
Use API from other (non web) app?
Know More By
Logging In
Log In
Forgot Password
NOT A MEMBER?
REGISTER NOW
Search the community
Search
Search Options
Search Everything
Search Front- & Back-End Development
Member Options
Share this
RSS
Thread Details
8
replies
118
subscribers
Posted
over 1 year ago
Related Tags
bundle
bundling
canonical url
custom module
custom widget cloud trial
Front- & Back-End Development
Front- & Back-End Development provider
Front- & Back-End Development Image Url
Library Provider
Membership Provider
meta
MVC
page selector
widget
Overview
Forum
 Front- & Back-End Development
Use API from other (non web) app?
Posted by
Community Admin
on
5 Aug 2018 23:47
Use API from other (non web) app?
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
2 Feb 2011 0:00
I am trying to use the Sitefinity API from within a Non Sitefinity application, to get at the data. However, I can't figure out configuration necessary to do this? I have tried including the config files from app_data/Sitefinity but get errors.
Is this possible?
Thank You
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
3 Feb 2011 0:00
Hello Eric,
You have to use web services calls to access the content data. There are
built-in services
that you can use.
Note that you should be authenticated when you want to work with the API, so I suggest that you should check
this post.
Best wishes,
Ivan Dimitrov
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
3 Feb 2011 0:00
Thank You for the response, however I am also having problems authenticating the Web Services?
The code examples I have seen seem to be calling from client, but I am trying to call from another Application:
www.sitefinity.com/.../client-side-programming-working-with-web-services.html
I call the web services and get a http 412 error: Pre-condition not met
I have tried
localhost/.../
and a variety of other things.
Thank You
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
3 Feb 2011 0:00
Hi Eric,
Using the code from one of the posts I sent you, you should be able to authenticate yourself. If you type
help
after the service you will be able to see the parameters that you have to pass.
1. You can access the service with javascript by using Sys.Net.WebRequest() or/and
2. Using server
side code
and making
HttpWebRequest
Kind regards,
Ivan Dimitrov
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
3 Feb 2011 0:00
I have tried that code (the 2nd http web request block) exactly, and with modifcations for just http GET:
If I make the request with http get I get http 412 error: Status Code:412 ..::login|session|expired::../Sitefinity/Login/Ajax
If I make the request with http POST i get http 405 method not allowed error
I checked the web.config which has the webDav module removed.
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
4 Feb 2011 0:00
Hi Eric,
The error you see is thrown by RequestAuthentication() static method of ServiceUtility class. You get a WebProtocolException when SystemManager.CurrentHttpContext.User.Identity.IsAuthenticated. The user you use is not authenticated.
Best wishes,
Ivan Dimitrov
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
4 Feb 2011 0:00
Thank you for the response.
How do I authenticate the service call, it is coming from a different application. So, i need to be able to authenticate the service calls programatically using an admin or service account. Is there a way to "logon" programitcally to create a cookie which I can add to the service calls?
Thank You
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
Community Admin
on
8 Feb 2011 0:00
Hello Eric,
I do not see what would be the problem if you use the code attached in one of the posts I sent you. Can you tell me what would stop you from using such a model to authenticate a user?
Getting the cookie will not do the trick, because you need to supply username and password to AuthenticateUser method.
Best wishes,
Ivan Dimitrov
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
You have posted to a forum that requires a moderator to approve posts before they are publicly available.