< Back
Print

Categories

The following array shows a typical synchronisation using the JSON connector. Please note that data will be sent using a JSON string, the following only shows an exemplary array.

Target attribute names can be configured except for a few exceptions:

Internal Variables:

  csid = interne CS ID
  csclass = interne CS Klasse (Pdmarticle, Pdmarticlestructuren, Mamfile, etc)
  sku = Eindeutige ID der Kategorie
  title = Name der Kategorie

The array languages will always be sent so the possible language values are obvious:

   [languages] => Array
         (
            [0] => default
            [1] => German
            [2] => Englisch
            [3] => Japanisch
         )

 

The default key is always set and usually equals the “first” language. In our case, that is “German”.

The token is the process ID of the call (not the JobID).

Full example data sets:

Array
(
    [method] => data
    [data] => Array
        (
            [categories] => Array
                (
                    [403] => Array
                        (
                            [csid] => Array
                                (
                                    [default] => 403
                                )

                            [csclass] => Array
                                (
                                    [default] => Pdmarticlestructure
                                )

                            [PdmarticleID] => Array
                                (
                                    [default] => 67
                                )

                            [SortOrder] => Array
                                (
                                    [default] => -7
                                )

                            [ParentID] => Array
                                (
                                    [default] => 387
                                )

                            [PdmarticlestructureID] => Array
                                (
                                    [default] => 403
                                )

                            [status] => Array
                                (
                                    [default] => online
                                )

                            [sku] => Array
                                (
                                    [default] => 403
                                )

                            [title] => Array
                                (
                                    [default] => Shuffle Player
                                    [German] => Shuffle Player
                                    [Englisch] => Shuffle Player
                                    [Japanisch] => iPod シャッフル
                                )

                        )

                )
            [languages] => Array
                (
                    [0] => default
                    [1] => German
                    [2] => Englisch
                    [3] => Japanisch
                )

        )

    [token] => bb78f9776d653ac7b3e2a238765164a3
)
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents