Giter Club home page Giter Club logo

spid-tech-docs's People

Contributors

afshin-rashid avatar alkemann avatar anaviz avatar andersos avatar andreasmartinsax avatar cjohansen avatar claesb avatar dangrasso avatar danielbentes avatar emilva avatar grzegorzkurtyka avatar ivylotarev avatar joawan avatar ksimons avatar lancerinf avatar linnhege avatar magdalena-gawel avatar magnars avatar mchlstckl avatar michalskinder avatar nexcius avatar paalvibe avatar piotrknapik avatar prazmok avatar robborow avatar stale-pettersen-schibsted avatar stonetwig avatar thogra avatar torarvid avatar zamzterz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spid-tech-docs's Issues

Update routes-file with oauth

Update oauth/exchange routes definition:

  • type parameter, replace

    The type of exchange. `code` is the only supported type.
    

    with

    The type of exchange, either `code` or `session`.
    
  • redirectUri parameter, prefix with:

    Used with type `session`.
    

Then run ./import-endpoints.sh to update tech-docs. :-)

Github integration for Endpoints pages - too limited?

Did you spot an error? Or maybe you just have a suggestion for how we can improve? Leave a comment, or better yet, send us a pull request on GitHub to fix it (in-browser editing, only takes a moment).

History of this page

These are great on the article pages. Not so much on the endpoint pages, tho.

Since the endpoint pages is built from a myriad of sources, the history is misleading, and the pull request won't contain the information users want to change most of the time.

I suggest removing the Github pull request and History links from this text on endpoint pages.

Missing descriptions for some fields

What are these? Find out and describe:

  • discountId in the campaign-product type
  • includeChildren in the campaign-product type
  • masterId in the transaction type
  • discountId in the voucher-group type

cURL examples in GET must have -G flag

Curl example that are GET requests must have a -G flag, otherwise it is sent as POST when -d/--data or --data-binary flags are used.

The other thing would be to just append query to url with a '?'.

Example: http://techdocs.spid.no/endpoints/GET/search/users/

Issue in original swedish

Hej!
Curl-exemplen som är GET requests, t.ex:

http://techdocs.spid.no/endpoints/GET/search/users/

borde ha en flagga -G också annars så blir det en POST request.

(

-G/--get

When used, this option will make all data specified
with -d/--data or --data-binary to be used in a HTTP GET request
instead of the POST

request that otherwise would be used. The data will be
appended to the URL with a '?' separator.
)

Fix the current php code example(s) in "Implementing Single Sign on"

Several smaller issues here since I think we should strive for the users to be able to just copy-n-paste the shown solution.

  • Now, many variables are not declared like $spidBaseURL and $ourBaseURL.
  • No script is requiring or including another as far as I can see.
  • // config.php.sample config.php.sample is not a valid filename for php. I know this is just a comment, but when reading you get the expression that the file is named that way.
  • Use of composer is probably needed
  • There is no sign of that anything has changed when logged in (i.e. when the user comes back to index.php)
  • The link in index.php is never printed.

Add documentation on JS SDK

We are missing the big article/documentation on how to use JS SDK, verifying signatures, parameters and so on.

Not sure how to access that one anymore..

More route file docstrings

Add these parameter descriptions for /user/{userId}/charge

requestReference

A unique reference that identifies the request. Used to validate that each charge request is unique for the combination of clientId + requestReference + request status and ensure that duplicate requests are not processed more than once. Sending the same `requestReference` will always result in the same response.

hash

A [verified request hash](/verified-hash/) signed with your client sign secret.

purchaseFlow

`"DIRECT"` or `"AUTHORIZE"`. Defaults to `"DIRECT"`. See [the paylink API](/paylink-api/#purchase-flows) for details.

items

A JSON string of order items. See introduction. 

Routes update

In the parameter descriptions for POST /product it says:

"VAT, in cents"

This is wrong. It should be "VAT, fraction × 10000. For instance, 25% would be 2500"

Update routes file URLs

Update URLs in routes, add /-prefix

Search for:

/types/voucher-type
/types/payment-options
/types/product-type
/types/product-status
/types/datetime
/types/order-status
/types/order-type
/types/address
/endpoints/GET/describe/{object}

Getting started PHP example

Considering that you require the client file in the config file and it requires the exception file, all files are loaded and there is no reason for the "is on your PHP system's include_path." step.

POST /status

Figure out what (if anything) to do with this

Google Analytics

Tracking ID
UA-51489276-1

<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-51489276-1', 'spid.no'); ga('send', 'pageview'); </script>

More route file changes

Find user/{userId}/order/{orderId}

  • Add "filters" to optional parameters.
  • Add "items" and "identifier" to filters-array.

Find vouchers/handout/{voucherGroupId}

  • Change "amount" description to The number of vouchers to retrieve. Defaults to 1.

Add additional download information for php-sdk

How to use composer should be a guide with link to the composer website.

First, create a composer.json in a new directory containing this information:

{
"repositories": [
      {
          "type": "git",
          "url": "https://github.com/schibsted/sdk-php"
      }
  ],
  "require": {
      "schibsted/sdk-php": "dev-master"
  }
}

(The dev-master will download from the master branch, could be changed to a version number if tagged etc.)

Then run the composer install command in the same directory
composer install or php composer.phar install depending on how you installed composer.

If composer is used requiring the client.php is unnecessary:
require_once("../../sdk-php/src/Client.php");

One should instead just require the require vendor/autoload.php . IMO, this should be the standard as composer is pretty much standard in the php community nowadays.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.