Currently the module assumes that you will be sending the API key as a URL / GET parameter. We would prefer to set it as a header. The patch that follows allows you to pick one of three options. GET, POST and HTTP Header.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ronald_istos created an issue. See original summary.

ronald_istos’s picture

Status: Active » Needs review
FileSize
1.89 KB
ronald_istos’s picture

Issue summary: View changes
BR0kEN’s picture

  1. Get value from $_REQUEST for GET and POST method because this superglobal variable contains data from $_POST, $_GET and $_COOKIE (http://php.net/manual/en/reserved.variables.request.php).
  2. Fix coding standards issues in previous patch.

Why not X-Api-Key? See https://tools.ietf.org/html/rfc6648

BR0kEN’s picture

  1. Used more developers-oriented description and naming.
  2. Use two types of API key sources: request and header.
colan’s picture

Status: Needs review » Needs work

Looks fine to me, but it would help to explain that GET and POST values are both in REQUEST. Please put examples of these in the description.

Not sure I'll have time to test this myself, but will commit once someone else does (and it's RTBC).

BR0kEN’s picture

Status: Needs work » Needs review
FileSize
2.41 KB
1.01 KB
gaydamaka’s picture

Status: Needs review » Reviewed & tested by the community

Work fine for me.

  • colan committed 24ccec0 on 7.x-1.x authored by ronald_istos
    Issue #2715419 by BR0kEN, ronald_istos, colan: Provide alternate...
colan’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. I improved the English a little bit.

  • colan committed ca2a83b on 7.x-1.x
    Issue #2715419 by colan: Removed stuff from t() that's getting encoded...
colan’s picture

Just gave credit to BR0kEN too as it's now possible to credit more than one person.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

colan’s picture