I can't authorize and can't get varify code from curl.

Discussion in 'Shapeways API' started by 507310_deleted, Mar 6, 2014.

  1. Hello All,

    We need help.
    I want to integrate Shapeways API with my ecommerce store.
    We have use code from github.
    We are use curl code form this code.
    We are getting this error "Fatal error: Call to undefined function readline()"

    I can't authorize and can't get varify code from curl.

    Can you please help me? and give me a solution.

    Thanks.
    Jignesh


     

    Attached Files:

  2. mkroeker
    mkroeker Well-Known Member
    Are you sure that you are using the correct part of the API software ? The readline() function provides code for reading or editing interactive command line input (as in a terminal window) which is probably not something you want to use in server code. (If this really what you want to do, add/enable the readline module in your php installation.)
     
  3. Thanks for the reply.
    I have put code in subfolder(maindomain/subfolder) of domain(maindomain) and i have created app using main domain,so it is correct?

    Let us know.

    Thanks,
    Jignesh
     
  4. Hello Friends,

    I want to integrate shpeways with my ecommerce store.

    So for that, i have created application here(https://developers.shapeways.com/)

    So i have got below keys:

    Oauth Settings
    Consumer Key:6774bfbcf9d067a43f17c0a8327827a16188cdceConsumer Secret:1a4e236c2dd437af6317b1f1442ad95963af3c1f

    I have download code of shapeways from here(https://github.com/Shapeways/shapeways-api)

    After download i have setup(set both keys) on my domain server.

    I have used "phpcurl" code and you can check file in attachment.
    And if its wrong then suggest us which we need to use for that.

    You can check here:
    https://shreeyaitsolutions.com/sub-domains/shapeways-api-mast er/php-curl/AuthorizeWithRequestUriQuery-oauth1-curl.php

    When i will try to run and get below error:
    Fatal error: Call to undefined function readline() in /home/content/28/10816628/html/sub-domains/shapeways-api-mas ter/php-curl/AuthorizeWithRequestUriQuery-oauth1-curl.php

    Do you have any solution for that? please help us.

    Thanks,
    Jignesh
     

    Attached Files: