0 Replies Latest reply on Jul 21, 2015 2:18 PM by vetash

    producteev POST /api/tasks does not work

    vetash

      Hello!
      I try to create a task from command line (linux) with curl so i do exactly as example say i.e.:
      curl -v -X POST --data '{"task":{"title":"Submit the new iOS App !tomorrow","project":{"id":"51fc32c0fa46348b0b00000b"}}}' "https://www.producteev.com/api/tasks/" --header "Content-Type:application/json" --header "Authorization:Bearer 5Fm-kYL08PpPU3VkYzTbCNO3-Ldzk8-COtjp3_7Xmto"

       

      off course i use own project id an access token.
      But when i run this command i see this:

       

      * About to connect() to www.producteev.com port 443 (#0)

      *   Trying 52.4.225.140...

      * connected

      * Connected to www.producteev.com (52.4.225.140) port 443 (#0)

      * successfully set certificate verify locations:

      *   CAfile: none

        CApath: /etc/ssl/certs

      * SSLv3, TLS handshake, Client hello (1):

      * SSLv3, TLS handshake, Server hello (2):

      * SSLv3, TLS handshake, CERT (11):

      * SSLv3, TLS handshake, Server key exchange (12):

      * SSLv3, TLS handshake, Server finished (14):

      * SSLv3, TLS handshake, Client key exchange (16):

      * SSLv3, TLS change cipher, Client hello (1):

      * SSLv3, TLS handshake, Finished (20):

      * SSLv3, TLS change cipher, Client hello (1):

      * SSLv3, TLS handshake, Finished (20):

      * SSL connection using ECDHE-RSA-AES128-GCM-SHA256

      * Server certificate:

      *        subject: C=US; ST=California; L=Palo Alto; O=Jive Software, Inc.; CN=*.producteev.com

      *        start date: 2014-11-20 00:00:00 GMT

      *        expire date: 2015-11-25 12:00:00 GMT

      *        subjectAltName: www.producteev.com matched

      *        issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA

      *        SSL certificate verify ok.

      > POST /api/tasks/ HTTP/1.1

      > User-Agent: curl/7.26.0

      > Host: www.producteev.com

      > Accept: */*

      > Content-Type:application/json

      > Authorization:Bearer<MY ACCESS TOKEN>

      > Content-Length: 97

      >

      * upload completely sent off: 97 out of 97 bytes

      * additional stuff not fine transfer.c:1037: 0 0

      * HTTP 1.1 or later with persistent connection, pipelining supported

      < HTTP/1.1 405 Method Not Allowed

      < Allow: PUT

      < Cache-Control: no-cache

      < Content-Type: text/html; charset=UTF-8

      < Date: Tue, 21 Jul 2015 21:12:02 GMT

      < Server: Apache/2.2.22 (Ubuntu)

      < Vary: Authorization,Accept-Encoding

      < X-Powered-By: PHP/5.3.10-1ubuntu3.11

      < transfer-encoding: chunked

      < Connection: keep-alive

      <

      <!DOCTYPE html>

      <!--[if lt IE 9 ]> <html class="ie8" lang="en_US"> <![endif]-->

      <!--[if IE 9 ]> <html class="ie9" lang="en_US"> <![endif]-->

      <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en_US"> <!--<![endif]-->

              <head>

       

       

                              <meta charset="utf-8">

                                                      <title>

                                      Task Management Software | Producteev by Jive

                              </title>

                                                                                                      <link rel="shortcut icon" href="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/favicon.ico" />

                              <!-- Always force latest IE rendering engine -->

                              <!-- <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1"> -->

                                                      <meta name="description" content="Producteev is the world’s best task management software for teams. It's more than an online to-do list and has helped hundreds of thousands of teams get work done faster with better results. Learn more."/>

                                                      <meta id="pdtv-base-dir" content="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb"/>

                  <meta name="google-site-verification" content="lmAcrbb6OQQy8GCMRii03IpMlaavxK8F1n4tx_T29uE" />                        <meta name="viewport" content="initial-scale=1.0 maximum-scale = 1.0">

                              <link href="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/css/thirdparty.css" type="text/css" rel="stylesheet"  />

                  <link href="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/css/producteev.css" type="text/css" rel="stylesheet"  />

                                      </head>

                  <body class="home">

          <!-- Content -->

       

       

      <body class="home info-page">

       

       

        

      <div id="header"  class="opaque">

          <div class="inner-col">

              <div class="logo-container">

                  <a href="/">

                      <div></div>

                  </a>

              </div>

              <input type="checkbox" id="nav" />

              <label for="nav"></label>

       

       

              <ul class="menu-nav">

                  <li class="item">

                      <a href="/features" >

                          Features

                      </a>

                  </li>

                  <li class="item">

                      <a href="/apps" >

                          Apps

                      </a>

                  </li>

                  <li class="item">

                      <a href="/customers" >

                          Customers

                      </a>

                  </li>

                  <li class="item">

                      <a href="/pricing"  >

                          Pricing

                      </a>

                  </li>

                  <li class="item hidden-phone hidden-tablet">

                      <a href="#" data-toggle="dropdown" class="dropdown-toggle ">

                          Developers <i class="icon-caret-down"></i>

                      </a>

                      <ul class="dropdown-menu" role="menu">

                          <li>

                              <a href="/developers">Introduction</a>

                          </li>

                          <li>

                              <a href="/api/doc/">Documentation</a>

                          </li>

                          <li>

                              <a href="/developers/resources">Resources</a>

                          </li>

                          <li>

                              <a href="/settings/apps">My Apps</a>

                          </li>

                      </ul>

                  </li>

                  <li class="item signup">

                      <a href="/signup" >

                          <span >Sign up</span>

                      </a>

                  </li>

                  <li class="item">

                      <a href="/login" >

                          Log in

                      </a>

                  </li>

              </ul>

          </div>

      </div>

                  <div class="container">

                  <div class="content">

                      <h2>Oops! Something wrong happened</h2>

                      <h3>Error 405.</h3>

                      <p>

                          The server returned an unexpected response and something went wrong during the process of your request. It could be only temporary, so try to refresh this page in a few minutes.

                      </p>

                      <p>

                          If you still encounter this issue please send us an email at <a href="mailto:contact@producteev.com">contact@producteev.com</a>. Thanks!

                      </p>

       

       

                      <h3>The Producteev Team.</h3>

                  </div>

              </div>

        

      </body>

       

       

       

       

          <!-- JavasScript files -->

                  <!--[if lt IE 9]>

                  <script src="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/js/browsersCompatibility/bind.js" type="text/javascript"></script>

                  <script src="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/js/browsersCompatibility/console.js" type="text/javascript"></script>

              <![endif]-->

                      <!-- Google Tag Manager -->

      <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MGC6T9"

      height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

      <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':

      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

      j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

      '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);

      })(window,document,'script','dataLayer','GTM-MGC6T9');</script>

      <!-- End Google Tag Manager -->

        

          </body>

          </html>

      * Connection #0 to host www.producteev.com left intact

      * Closing connection #0

      * SSLv3, TLS alert, Client hello (1):