Skip to content

Instantly share code, notes, and snippets.

View jabbink's full-sized avatar
🌴
On vacation

Jasper Abbink jabbink

🌴
On vacation
View GitHub Profile
@jabbink
jabbink / Albert Heijn app API.md
Last active June 26, 2024 13:56
Interact with the Albert Heijn mobile app API to retrieve receipt data, and other things

AH API

Always use User-Agent: Appie/8.22.3 and Content-Type: application/json
Technically there is more information about your device and user ID after it, but the server does not seem to care

Token

If you have a valid access_token, add it as a header in request
Authorization: Bearer access_token

package test;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
import javax.xml.bind.DatatypeConverter;