Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

accept data from external site (ping.fm) : how to add to framework?


Reply


2 Posts   685 Views

Avatar
DusX

Community Member, 12 Posts

6 November 2010 at 5:21am

OK, this will be the first time I have dealt with this type of problem with the sapphire framework.
What I need to do is accept data via a custom url, that I can then use in the system.
here is a reference page for the service I wish to integrate: http://groups.google.com/group/pingfm-developers/web/working-with-a-custom-url?pli=1
I believe this should be one of the easiest examples of doing this and a great place for me to start.
So how do I define a URL that is publicly open and secure? that will accept this data?

appreciate any help on this...

PS: this could make for a good tutorial ;) ... or anyone know of one already that deals with this?

Avatar
Ryan M.

Community Member, 309 Posts

6 November 2010 at 3:43pm

Well, why not use urlParams to handle that?

Then you could have data returned via a url like: domain.com/pingfm/receive

All you'd have to build is a function called receive() in your Page controller that handles whatever's posted back to your site.