Register
 
 

Manual for module Content API



Action for send email.

You can use this module to send link to custom content by email, e.g. to your friend. Parameters for this action:

  • email - recipient email;
  • cid - content id;
  • hash - secret hash, for description of it algorithm contact with PCMS developers;
  • name - sender's name;
  • text - text description;

    For example: .../boxedpromoxml.php?email=mail@domain.com&hash=...&cid=22222&name=Vasya&text=HELLO

For next actions you can pass parameter "action":

  • showMenu - display left site menu. Information about menu:
    • item_id - menu id;
    • item_name - menu name;
    • item_link - menu link;
    • For example: .../boxedpromoxml.php?action=showMenu

  • showModels - display full models list. Information about models: model_id, name, stage_name, first_name, last_name, image;
  • showGalleries - this action has several sub actions (parameter "subAction"):
    • listModels - this action display models and allow filtering them by:
      • cast - coma separated list of models ids;
      • dvds - coma separated list of dvds ids;
      • letter - the filter on the first character of a name
      • For example: .../boxedpromoxml.php?action=showGalleries&subAction=listModels&cast=1,2&dvds=2222

    • listCats - this action display categories and allow filtering them by:
      • cats - coma separated list of categories ids;
      • dvds - coma separated list of dvds ids;

        For example: .../boxedpromoxml.php?action=showGalleries&subAction=listCats&cats=1,2&dvds=2222

    • listStudios - this action display studios and allow filtering them by:
      • studios - coma separated list of studios ids;
      • dvds - coma separated list of dvds ids;

        For example: .../boxedpromoxml.php?action=showGalleries&subAction=listStudios&studios=1,2&dvds=2222

    • listScenes - this action display scenes and allow filtering them by:
      • scenes - coma separated list of scenes ids;
      • dvds - coma separated list of dvds ids;

        For example: .../boxedpromoxml.php?action=showGalleries&subAction=listScenes&scenes=1,2&dvds=2222

        Also you can order for scenes:

      • previews - by using this params you order preview link;

        For example: .../boxedpromoxml.php?action=showGalleries&subAction=listScenes&previews=1

      • formats - by using this params you order list of formats with links to download;

        For example: .../boxedpromoxml.php?action=showGalleries&subAction=listScenes&formats=1

    • listDvds - this action display dvds and allow filtering them by (default sub action): studios, cats and cast. Also in this sub action you can use next parameters:
      • showSeries - this flag can be 1 or 0 and it add into dvds view info about series;
      • description - this flag can be 1 or 0 and it add into dvds view info about dvd's descriptions;
      • scenesInfo - this flag can be 1 or 0 and it add into dvds view info about dvd's scenes;
      • letter - the filter on the first character of a name;

        For example: .../boxedpromoxml.php?action=showGalleries&subAction=listDvds&studios=1,2&cats=1,2,3&cast=3,4,1&scenesInfo=1

  • k104 - this action display views of 100 best rated scenes, 100 last added scenes, 100 most downloaded scenes and they mixed list;

    For example: .../boxedpromoxml.php?action=k104

  • showSets - this action display scenes and allow filtering them by parameters:
    • for - text string which will be search in: dvds/scenes titles, dvds/scenes descriptions and in models names;
    • studio - studio id;
    • cat - category id;
    • modelIds - coma separated model's ids list;
    • onlyCats - coma separated categories ids list;
    • onlyStudios - coma separated studio's ids list;
    • keywords - comma separated keywords. If it setted, then cat will be ignored;
    • relevant - sort result by relevance(if equal to 1). Works only with filtering by keywords;

      For example: .../boxedpromoxml.php?action=showSets&for=Anal&studio=1&cat=1&modelIds=1,2,3&onlyCats=1,2,3&onlyStudios=1,2,3

  • showFaq - display articles of specified by alias FAQ section.* alias - mandatory parameter, alias of section which articles will be displayed;

You also can use pager params for all action which display content:

  • boxPager_of - field name or feld index for sorting;
  • boxPager_od - sort flag: 1 - desc, 0 or empty - asc;
  • boxPager_rpp - number rows on one page;
  • boxPager_cp - pager current page, page numbers can be 0 ... N;