mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 15:00:47 +02:00
- Repo renamed to SirHumza/orbisRPC on GitHub
- Source dir PS4RP/ -> orbisrpc/
- Binaries ps4rp.{elf,fself,bin} -> orbisrpc.{elf,fself,bin}
- On-console config dir /data/PS4RP -> /data/orbisRPC
- Build outputs, HTTP UA, net pool/socket names, README, SETUP
guide all updated to orbisRPC
14 lines
601 B
C
14 lines
601 B
C
/* http.h - OAuth token exchange via SceHttp */
|
|
#ifndef HTTP_H
|
|
#define HTTP_H
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
/* POST to token endpoint; fills access_token/refresh_token/expires_in. Returns 0 ok. */
|
|
int http_oauth_token(const char *client_id, const char *client_secret,
|
|
const char *code, const char *refresh_token,
|
|
char *access_token, size_t at_cap,
|
|
char *refresh_out, size_t rt_cap,
|
|
int64_t *expires_out_epoch);
|
|
/* simple GET into caller buffer */
|
|
int http_get(const char *url, char *out, size_t cap);
|
|
#endif |