Jump to:

23581 Posts in 19403 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » RestfulService Issue getting value of node with namespace

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

Page: 1
Go to End
Author Topic: 634 Views
  • Phill
    Community Member
    75 Posts

    RestfulService Issue getting value of node with namespace Link to this post


    I'm trying to build a module to communicate with a blogspot account.

    The feed im using is http://ss-moduletest.blogspot.com/feeds/posts/default

    I've included the method im using below i can get the author information but cant seem to access anything contained in a namespace.

    I've checked the api documentation but couldn't work it out, any ideas?

    public function GetPosts($iMaxResults=false,$iStartIndex,$iPublishedMin,$iPublishedMax) {
          $url ='http://ss-moduletest.blogspot.com/feeds/posts/default';
          $cache_expiry = 3600;
          $params = array();

          $blogger = new RestfulService($url,$cache_expiry);

          $con = $blogger->connect();
          $dosAuthor = $blogger->getValues($con,'author');
          echo '<pre>';
             $x = $blogger->getValues($con,'openSearch:totalResults');
          echo '</pre>';
          return $blogger->getValues($con,'entry');


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.