Hyves - Always in touch with your friends

Data-API

Methods

Create a blog.

  • Added: Apr 17, 2008
  • Paginated

params

  • title --- Title of the blog.
    • Required
  • body --- Body of the blog.
    • Required
  • visibility --- The visibility of the blog.
    • Required
    • Possible values:
      • friend --- visible only to the friends of the user.
      • friends_of_friends --- visible only to the friends of the user and their friends.
      • public --- visible only to all logged in hyvers.
      • superpublic --- visible only to all (whether logged in or not).
      • default --- default visibility, as presented to Hyver on website (note: may involve settings, not a static result).
  • latitude
    • Optional
  • longitude
    • Optional
  • hubid --- Comma-separated list of hubids
    • Optional

responsefields

This method supports the use of ha_responsefields. Acceptable values are a comma separated list of 0 or more of the following:
  • commentscount
  • respectscount
  • tags
  • geolocation
  • viewscount
  • hasrespected

extra

  • For this function to work, you need to supply a valid access token to oauth_token.
  • For more information on oAuth, see http://www.hyves-developers.nl/documentation/data-api/hyves-api-oauth/.
  • Please provide some kind of user feedback when an item is created.
  • examples

    example 1

    url
    https://data.hyves-api.nl/?oauth_token=YXRfMjY0MTQzOTE4X3pgNkF9lPAmdP62qYaw5dg%3D&title=I%20like%20to%20be%20a%20Pan.&body=Being%20a%20Pan%20is%20good%20for%20your%20health.&visibility=friends_of_friends&ha_method=blogs.create&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&ha_version=2.0&oauth_signature_method=PLAINTEXT

    result
    •  <?xml version="1.0" encoding="UTF-8"?>
    •  <blogs_create_result>
    •   <blog>
    •   <blogid>00f4219022877aae30baeaac4dc44d6496</blogid>
    •   <title>I like to be a Pan.</title>
    •   <body>Being a Pan is good for your health.</body>
    •   <userid>00086769082d53ad21952679a7238766db</userid>
    •   <url>http://panapi.hyves.nl/blog/45991191/I_like_to_be_a_Pan/W3PC/</url>
    •   <visibility>friends_of_friends</visibility>
    •   <created>1313063178</created>
    •   </blog>
    •   <info>
    •   <secure_connection>true</secure_connection>
    •   <running_milliseconds>72</running_milliseconds>
    •   <serverinfo>web1144_stable_93882_HPHP</serverinfo>
    •   </info>
    •  </blogs_create_result>

    example 2

    url
    https://data.hyves-api.nl/?oauth_token=YXRfMjY0MTQzOTE4X3pgNkF9lPAmdP62qYaw5dg%3D&title=I%20like%20to%20be%20a%20Pan.&body=Being%20a%20Pan%20is%20good%20for%20your%20health.&visibility=friends_of_friends&ha_method=blogs.create&ha_responsefields=commentscount%2Crespectscount%2Ctags%2Cgeolocation%2Cviewscount%2Chasrespected&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&ha_version=2.0&oauth_signature_method=PLAINTEXT

    result
    •  <?xml version="1.0" encoding="UTF-8"?>
    •  <blogs_create_result>
    •   <blog>
    •   <blogid>00e2701b6afb9348a726c84a0e0e0bc752</blogid>
    •   <title>I like to be a Pan.</title>
    •   <body>Being a Pan is good for your health.</body>
    •   <userid>00086769082d53ad21952679a7238766db</userid>
    •   <url>http://panapi.hyves.nl/blog/45991192/I_like_to_be_a_Pan/G4Bz/</url>
    •   <visibility>friends_of_friends</visibility>
    •   <created>1313063178</created>
    •   <commentscount>0</commentscount>
    •   <respectscount>0</respectscount>
    •   <hasrespected>false</hasrespected>
    •   <tags/>
    •   <viewscount/>
    •   <geolocation/>
    •   </blog>
    •   <info>
    •   <secure_connection>true</secure_connection>
    •   <running_milliseconds>86</running_milliseconds>
    •   <serverinfo>web998_stable_93882_HPHP</serverinfo>
    •   </info>
    •  </blogs_create_result>

    Categories

    • blogs

    © 2004-2012 Hyves   Algemene Gebruiksvoorwaarden   Je Privacy

    Aanmelden