HyvesConnect-JS

These methods accept a javascript object for prefilling fields in the form, and either a dom node or an element id. The button will be placed inside the element if node/id is specified. Please note: when using the node parameter, the function must always be called in a 'onload' or 'ondomready', otherwise chances are that IE will throw errors.

subscribe to our button mailinglist at smartbuttons-requestATdevelopers.hyves.nl (with subscribe in the subject of your email) if you want to be updated on information or updates of the buttons.

  1. Respect a webpage
  2. Become a friend of this Hyver
  3. Place this as a Blog
  4. Become a member of a Hub
  5. Install this gadget on your Hyves profile
  6. Upload this photo to your Hyves profile

Become a friend of this Hyver

<script type='text/javascript'>Hyves.connect.friendinvite({member_id: 'MEMBERID'});</script>

Variables:
  • member_id=MEMBERID
    • Username
      • Maximum length: 20 characters (for example for raymond.hyves.nl, the USERNAME in this case is raymond)
    • Website-id's
      • The userid of a user, you can find in the userId when you look at the URL of the "Google ..." link on a users profile (we know this is not ideal, so you should use a username).
    • API-id's

Example

Place this as a Blog

<script type='text/javascript'>Hyves.connect.blog({title: 'TITLE', body:'BODY'});</script>

Variables:
  • title=TITLE
    • Maximum length: 75 characters
    • Please URL-encode TITLE. For example: "Testing%20the%20%23url-encoding" (online encoder can be found here)
  • body=BODY
    • Maximum length: at the moment browser depended, depends on the total url lenght
    • Please URL-encode BODY
    • Bases on Fancylayout, the like bb-code style text.

Example


Become a member of a Hub

Become a member of a Hangout/Group/School/College/Company/Club/(Hubs)/Interest/Brand

<script type='text/javascript'>Hyves.connect.hub({hub_id: 'HUBID'});</script>

Variables:
  • hubid=HUBID (hybrid)
    • Shortname
      • Maximum length: 20 characters (for example hyves-api.hyves.nl, the HUB in this case is '''hyves-api''')
    • Website-id's
      • The id's of the hubs, you can find in the hubId in the sourcecode of a hub webpage (we need to list this somewhere else, till that time you will have to search in the source code of the webpage). For example the hubId of the Hyve http://technologie.hyves.nl is 253820
    • API-id's

Example

Install this gadget on your Hyves profile

<script type='text/javascript'>Hyves.connect.widget({title: 'TITLE', body:'HTML'});</script>

Variables:
  • title=TITLE
    • Maximum length: 75 characters

      Please URL-encode TITLE. For example: "Testing%20the%20%23url-encoding" (online encoder can be found here)
  • html=HTML
    • Maximum length: at the moment browser depended, depends on the total url lenght
    • Please URL-encode HTML

Note: The gadget code must be approved at hyves.nl (for more information see Widget specs)

Example

Upload this photo to your Hyves profile

<script type='text/javascript'>Hyves.connect.media({});</script>