SupportForumPublishing with DOTGOCMRLSample CMRL coding

Sample CMRL coding

(8 posts)
  1. Ruben
    Member

    The documentation leaves me wanting.

    Can you provide more programming samples in your documentation?

    I watched a few videos on the Dotgo service where they provided coding on slides, is it possible to get them posted here somewhere?

    I'll admit I'm not quite a coding warrior, but if I had some examples I know I would be able to get a lot more functionality from your service.

    My plans are to offer this service to small businesses here in Las Vegas.

    Any help would be be appreciated by me and others I'm sure.

    Thanks,
    ruben

    Posted 1 year ago
  2. michelled
    Administrator

    Hi Ruben,

    Where did you see the videos? I'm not sure they were published by us, but that's on our list of to-dos. We're also in the process of updating our documentation (coinciding with our new API launch). We'll make sure to include some more CMRL examples in there.

    Thanks,

    Michelle

    Posted 1 year ago
  3. Ruben
    Member

    This only one I can find right now:

    http://dotgo.com/Blog/2011/01/dotgo-demos-at-new-york-tech-meetup/

    The point being, if Stefan or someone could provide samples of CMRL coding, that would really help us would-be developers out.

    I've checked out some forums where others are asking for CMRL coding also.

    Specifically I'm looking for a CMRL menu structure exactly like this one:
    FREEBIETEXTS SUBSCRIBE to DOTNET (368266)

    Thanks again Michelle,

    ruben

    Posted 1 year ago
  4. michelled
    Administrator

    Hi Ruben,

    Here's a few samples we've authored.

    New York Times:

    <?xml version="1.0" encoding="UTF-8"?>
    <cmrl xmlns:sm="http://www.scientific-media.com/cmrl">

    <match pattern="*">
    <message>
    <content>

    The New York Times

    Reply:
    Headlines
    World
    U.S.
    N.Y./Region
    Business
    Tech
    Sports
    Science
    Health
    </content>
    </message>
    </match>

    <match pattern="Headlines">
    <rss href="http://feeds.nytimes.com/nyt/rss/HomePage" />
    </match>

    <match pattern="World">
    <rss href="http://feeds.nytimes.com/nyt/rss/World" />
    </match>

    <match pattern="US">
    <rss href="http://feeds.nytimes.com/nyt/rss/US" />
    </match>

    <match pattern="NY">
    <rss href="http://feeds.nytimes.com/nyt/rss/NYRegion" />
    </match>

    <match pattern="Business">
    <rss href="http://feeds.nytimes.com/nyt/rss/Business" />
    </match>

    <match pattern="Tech">
    <rss href="http://feeds.nytimes.com/nyt/rss/Technology" />
    </match>

    <match pattern="Sports">
    <rss href="http://feeds1.nytimes.com/nyt/rss/Sports" />
    </match>

    <match pattern="Science">
    <rss href="http://feeds.nytimes.com/nyt/rss/Science" />
    </match>

    <match pattern="Health">
    <rss href="http://feeds.nytimes.com/nyt/rss/Health" />
    </match>

    </cmrl>

    Subscriptions:

    <?xml version="1.0" encoding="UTF-8"?>
    <cmrl xmlns:dotgo="http://dotgo.com/cmrl/1.0">

    <match pattern="*">
    <message><content>
    Demo!

    View Coupons
    Subscribe for coupons
    Unsubscribe from coupons
    Register Jane
    Unregister Jane
    </content></message>
    </match>

    <match pattern="Coupons">
    <block>
    <follow allow="reg?" broadcast="self">
    <message>
    <content>

    Today's Coupon is...
    </content>
    </message>
    </block>
    </match>

    <match pattern="anon*@">
    <block>
    <register/>
    <forward allow="reg" />
    </block>
    </match>

    <match pattern="*@">
    <block>
    <register/>
    <forward allow="reg" />
    </block>
    </match>

    </cmrl>

    TripAdvisor:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- TripAdvisor.com -->
    <cmrl xmlns:sm="http://www.scientific-media.com/cmrl">

    <!-- DEFAULT -->
    <match pattern="">
    <message>
    <content>

    Welcome to TripAdvisor.com!

    Reply:
    Search All
    Search Lodging
    Search Attractions
    Search Restaurants
    Free Mobile App!
    </content>
    </message>
    </match>

    <match pattern="*">
    <query>tripadvisor.com Search Reviews</query>
    </match>

    <!-- ALL REVIEWS -->
    <match pattern="Search Reviews">
    <match pattern="">
    <message>
    <content>

    Search TripAdvisor Reviews

    Please reply with search word(s) (e.g. "food new york")
    or reply
    to go back to main menu.
    </content>
    <input name="searchString">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Reviews"/>
    </input>
    </message>
    </match>
    <match pattern="*">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Reviews&searchString=getFromArg"/>
    </match>
    </match>

    <match pattern="Reviews Details">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=ReviewDetails"/>
    </match>

    <!-- LODGING -->
    <match pattern="Search Lodging">
    <match pattern="">
    <message>
    <content>

    Search TripAdvisor Lodging

    Please reply with search word(s) (e.g. "hotels new york")
    or reply
    to go back to main menu.
    </content>
    <input name="searchString">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Lodging"/>
    </input>
    </message>
    </match>
    <match pattern="*">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Lodging&searchString=getFromArg"/>
    </match>
    </match>

    <match pattern="Lodging Details">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=LodgingDetails"/>
    </match>

    <!-- ATTRACTIONS -->
    <match pattern="Search Attractions">
    <match pattern="">
    <message>
    <content>

    Search TripAdvisor Attractions

    Please reply with search word(s) (e.g. "zoo new york")
    or reply
    to go back to main menu.
    </content>
    <input name="searchString">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Attractions"/>
    </input>
    </message>
    </match>
    <match pattern="*">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Attractions&searchString=getFromArg"/>
    </match>
    </match>

    <match pattern="Attractions Details">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=AttractionsDetails"/>
    </match>

    <!-- RESTAURANTS -->
    <match pattern="Search Restaurants">
    <match pattern="">
    <message>
    <content>

    Search TripAdvisor Restaurants

    Please reply with search word(s) (e.g. "seafood new york") or reply for main menu.
    </content>
    <input name="searchString">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Restaurants"/>
    </input>
    </message>
    </match>
    <match pattern="*">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=Restaurants&searchString=getFromArg"/>
    </match>
    </match>

    <match pattern="Restaurants Details">
    <engine href="http://localhost:8080/cgi-bin/engines/tripadvisor.com/engine.cgi?flag=RestaurantsDetails"/>
    </match>

    <!-- MOBILE APP -->
    <match pattern="Free Mobile App">
    <message>
    <content>

    FREE smartphone Apps!

    iPhone: <url>http://itunes.apple.com/us/app/tripadvisor-hotels-flights/id284876795?mt=8</url>
    Android: <url>http://www.doubletwist.com/apps/android/TripAdvisor/4466124128579267334/</url>
    Ovi: <url>http://store.ovi.com/content/45400</url>

    Reply for home
    </content>
    </message>
    </match>

    </cmrl>

    Best,

    Michelle

    Posted 1 year ago
  5. michelled
    Administrator

    Ah, well, looks like our forum is rendering the code a bit. I'll email them you to or paste the links to download here.

    Best,

    Michelle

    Posted 1 year ago
  6. Ruben
    Member

    cool, thanks

    ruben

    Posted 1 year ago
  7. michelled
    Administrator

  8. michelled
    Administrator

    All - Here are the links to download a few CMRL examples:

    http://dl.dropbox.com/u/33979984/nytimes.cmrl
    http://dl.dropbox.com/u/33979984/subscriptions.cmrl
    http://dl.dropbox.com/u/33979984/tripadvisor.cmrl

    Thanks,

    Michelle

    Posted 1 year ago

RSS (of this topic)

Reply

You must log in to post.