Changeset 39691 in project


Ignore:
Timestamp:
03/13/21 18:27:18 (3 months ago)
Author:
Diego
Message:

rest-bind: change "use" to "import" for C5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/rest-bind

    r37070 r39691  
    5555{{call-with-input-request}}. {{call-with-input-request}} remains free inside
    5656define-method so will bind to whichever procedure is bound in the environment
    57 from which {{define-method}} is called. This means that, by (use ...)ing the
     57from which {{define-method}} is called. This means that, by (import ...)ing the
    5858correct module, you can use the regular {{call-with-input-request}} from
    5959[[http-client]] or you can use the version from [[oauth]] which signs the
     
    8888
    8989The Dropbox API requires the requests to be signed with oauth so use
    90 (use oauth-client) which provides a call-with-input-request that will sign the
     90(import oauth-client) which provides a call-with-input-request that will sign the
    9191requests for us.
    9292
    93     (use rest-bind oauth-client)
     93    (import rest-bind oauth-client)
    9494   
    9595    (define-method (metadata root path #!key file_limit hash list include_deleted rev locale)
     
    108108the method to use the regular call-with-input request from http-client.
    109109
    110     (use rest-bind http-client)
     110    (import rest-bind http-client)
    111111   
    112112    (define-method (homepage)
     
    123123"money" and "ticker" follow.
    124124
    125     (use rest-bind http-client medea)
     125    (import rest-bind http-client medea)
    126126
    127127    (define-method (btc-ticker currency "money" "ticker")
Note: See TracChangeset for help on using the changeset viewer.