++ed by:
AKRON AWNCORP

2 PAUSE user(s)
1 non-PAUSE user(s).

Nils Diewald

NAME

XML::Loy::OStatus - OStatus Format Extension

SYNOPSIS

  use XML::Loy::Atom;

  my $atom = XML::Loy::Atom->new('entry');
  $atom->extension(-OStatus);

  $atom->author(name => 'Akron');
  $atom->attention('http://sojolicio.us/user/peter');
  $atom->conversation('http://sojolicio.us/conv/34');

  say $atom->to_pretty_xml;
  # <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  # <entry xmlns="http://www.w3.org/2005/Atom"
  #        xmlns:ostatus="http://ostatus.org/schema/1.0/">
  #   <author>
  #     <name>Akron</name>
  #   </author>
  #   <link href="http://sojolicio.us/user/peter"
  #         rel="ostatus:attention" />
  #   <link href="http://sojolicio.us/conv/34"
  #         rel="ostatus:conversation" />
  # </entry>

DESCRIPTION

XML::Loy::OStatus is an extension for XML::Loy::Atom and provides several functions for the work with OStatus as described in the specification.

This module is an early release! There may be significant changes in the future.

METHODS

XML::Loy::OStatus inherits all methods from XML::Loy and implements the following new ones.

attention

  $entry->attention('http://sojolicio.us/user/peter');

  say $entry->attention;

Add or get attention link.

conversation

  $entry->conversation('http://sojolicio.us/conv/34');

  say $entry->conversation;

Add or get conversation link.

verb_leave

  $entry->verb_leave;

Add OStatus leave verb for ActivityStreams. This needs the ActivityStreams extension.

verb_unfavorite

  $entry->verb_unfavorite;

Add OStatus unfavorite verb for ActivityStreams. This needs the ActivityStreams extension.

verb_unfollow

  $entry->verb_unfollow;

Add OStatus unfollow verb for ActivityStreams. This needs the ActivityStreams extension.

DEPENDENCIES

Mojolicious.

AVAILABILITY

  https://github.com/Akron/XML-Loy

COPYRIGHT AND LICENSE

Copyright (C) 2011-2013, Nils Diewald.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl.