Shopify / Shopify/shopify-api-php

Add a method to retrieve the last raw response

Open
#349 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
473
Forks
193
Avg merge
5h 8m
Merged PRs (30d)
1

Description

Overview/summary

We can't really easily get to the headers that tell us how our api-call limits are doing. It would be really beneficiary to access those. Given the scopes of some of the methods on the Base class it's really difficult to achieve this by extending or overriding methods in the class.

Motivation

We need to know when to reduce our API calls in order to create an efficient usage of the API.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Base class and tracing how API calls produce their responses. Identify where the most recent raw response and its headers could be retained without relying on extending or overriding methods. Done means callers can retrieve the last raw response, including the headers needed to monitor API-call limits.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.