>>the cf syntax isn't much different.

+1

Here is an example of some of the syntax. The code is really similar so if
you have examples in VB,C# etc you can pretty much harvest it and tweak it
to work with CFScript.

<cfscript>
oMailbox.Postoffice = domainname;
oMailbox.Mailbox = mailname ;
oMailbox.Limit = -1;
oMailbox.RedirectAddress = "";
oMailbox.RedirectStatus = "0";
oMailbox.Status = "1";
MailboxResult = oMailbox.AddMailbox();

oAUTHLogin.Account = domainname;
oAUTHLogin.Description = "";
oAUTHLogin.Password = mailpass;
oAUTHLogin.Rights = "USER";
oAUTHLogin.Status = 1 ;
oAUTHLogin.UserName = UserName;
LoginResult = oAUTHLogin.AddLogin();

oAddressMap.Account = domainname;
oAddressMap.DestinationAddress = "[SF:" & domainname & "/" & mailname & "]";
oAddressMap.Scope = "";
oAddressMap.SourceAddress = sTemp;
oAddressMapResult = oAddressMap.AddAddressMap();

</cfscript>




On Wed, Feb 1, 2012 at 6:18 PM, Russ Michaels <[email protected]> wrote:

>
> the cf syntax isn't much different.
>
> <cfset  objUserProfile  = CreateObject("COM","API.cUserInfo")>
>
> http://cfquickdocs.com/cf9/#createobject.comobject
>
> then you just call the methods of  objUserProfile
>
> <cfset foo =  objUserProfile.method(params)>
>
>
>
>
> On Wed, Feb 1, 2012 at 11:04 PM, jack Lemay <[email protected]
> >wrote:
>
> >
> > Hey everyone,
> >
> > I've been asked to work on a website that interacts with a database via
> an
> > API. I have the manual to the API and think I may be in over my head, but
> > would like to explore this a little more. Is it as Daunting as it looks?
> > The database is set up and the current old website (php) uses this API to
> > interact with the website, mostly letting customers update account info
> > from the website. I don't have access to the current website files.
> >
> > About the API:
> >
> > This ..." API is a COM+ application. It
> > provides a set of COM objects that can be manipulated by COM-
> > compliant development tools such as Visual Basic, Visual C++, Visual
> > C#, VSTA and so on. "
> >
> > The manual lists classes with input paramaters and return values like:
> >
> > "Example
> >
> > The following example shows how to create a new user profile once the
> > account has been validated:
> >
> > Dim objUserProfile as Object
> > Dim lRetCode as Integer
> > ‘
> > Set objUserProfile = CreateObject("API.cUserInfo")
> >
> > "
> >
> > I've been using CF for years, but don't know how to integrate with this.
> >
> > Any tips or suggestions on where to look for help on this? Or does this
> > require knowledge of a different language altogether?
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349732
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to