如何使用Rest API和PHP

时间:2017-04-25 05:03:28

标签: php api

非常初学的问题,但根本不知道从哪里开始。我正在尝试使用PHP获取此API的响应,但无法正常工作。

我知道这个问题与HTTP组件有关,但我是一个初学者并且非常困难。

任何帮助都会很棒,或者如果有另一种(更清洁,更简单)的方式,这样做也会很棒。

我正在尝试以json格式获取响应



<key>com.apple.security.scripting-targets</key>
    <dict>
        <key>com.apple.security.temporary-exception.apple-events</key>
        <array>
            <string>com.apple.terminal</string>
            <string>com.googlecode.iterm2</string>
            <string>com.apple.finder</string>
        </array>
    </dict>
    <key>com.apple.security.temporary-exception.shared-preference.read-write</key>
    <array>
        <string>com.apple.finder</string>
    </array>
    <key>com.apple.security.temporary-exception.apple-events</key>
    <array>
        <string>com.apple.terminal</string>
        <string>com.googlecode.iterm2</string>
        <string>com.apple.finder</string>
    </array>
</dict>
&#13;
&#13;
&#13;

0 个答案:

没有答案