Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. musicman (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 20:57:13 EDT musicman musicman
    I keep on getting told this isn't valid JSON. Can someone tell what I am doing?

    generate_post_data()
    {
    cat << EOF
    {
    "client_id": "5cc312cee54277001312d232",
    "secret": "",
    "count": 500,
    "offset": 1
    }
    EOF
    }

    #while $x = $total
    # test of function call in curl
    curl -X POST https://sandbox.plaid.com/institutions/get -H 'Content-Type: application/json' --data "(generate_post_data)"

    The actual error:
    {
    "display_message": null,
    "error_code": "INVALID_BODY",
    "error_message": "body could not be parsed as JSON",
    "error_type": "INVALID_REQUEST",
    "request_id": "WnnobVglKsKqYmZ",
    "suggested_action": null
    }
    In conversation Thursday, 16-May-2019 20:57:13 EDT from nu.federati.net permalink
    1. musicman (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 21:04:39 EDT musicman musicman
      in reply to
      I did an inline EOF and that worked, but still curious why the above doesn't work
      In conversation Thursday, 16-May-2019 21:04:39 EDT from nu.federati.net permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.