Typeform api,更改结果中的变量名称

时间:2018-06-18 08:24:00

标签: php typeform

我使用typeform作为获取反馈和联系信息的工具。 通过使用api,我可以通过以下格式获得调查结果:

                [answers] => Array
                    (
                        [0] => stdClass Object
                            (
                                [field] => stdClass Object
                                    (
                                        [id] => XdLvktpeAVmc
                                        [type] => short_text
                                        [ref] => 88e1657e-516b-4219-8086-52ba80e55eb0
                                    )

                                [type] => text
                                [text] => Test1
                            )

                        [1] => stdClass Object
                            (
                                [field] => stdClass Object
                                    (
                                        [id] => QLYWXINAKoeS
                                        [type] => number
                                        [ref] => c431bf84-7305-4171-a659-67191b797651
                                    )

                                [type] => number
                                [number] => 111111111
                            )

                        [2] => stdClass Object
                            (
                                [field] => stdClass Object
                                    (
                                        [id] => wRSL0qJ7BSWH
                                        [type] => email
                                        [ref] => 719312ce-9ae9-4a45-9b9f-fdfaf3d23dc1
                                    )

                                [type] => email
                                [email] => Test1@email.com
                            )

                    )

                [hidden] => stdClass Object
                    (
                    )

                [calculated] => stdClass Object
                    (
                        [score] => 0
                    )

            )

是否可以更改变量的名称(文本,数字,电子邮件)?我尝试过使用隐藏字段,但这不是使用的功能。

由于

0 个答案:

没有答案