Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Query Rows by xx

Aperta
#374 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
api

Direzione di ricerca

Inizia individuando le classi PHP che gestiscono il recupero delle righe HubDB e il punto di ingresso esistente per il recupero tramite ID. Confronta la costruzione delle relative richieste con l’endpoint HubDB documentato usando una query come post_id__eq=10, quindi aggiungi una copertura che dimostri che vengono accettati filtri arbitrari sulle colonne e che le righe restituite possono essere identificate per aggiornamenti successivi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

At the moment, there is no 'query rows by field -> value' method in the PHP classes, equivalent to the CURL method I screenshotted in the docs and attached. You can get a row by ID, but since row ID's are created dynamically there's no way of knowing the pk ID value of a row you want to query, and no way of filtering a query by arbitrary column value like this

https://api.hubapi.com/cms/v3/hubdb/tables/gen_test/rows?post_id__eq=10

I'm going to use a workaround where I just use a CURL GET request according to these docs to make the queries I need, but I'd like to suggest this as an enhancement - the ability to query data by column value seems rather integral to basic CRUD functionality to me, as I can't update a row without finding it first and I can't find it without query capability. Unless I'm missing something?

Thanks
Brian

Screenshot 2024-08-05 164557

Lingua principale
PHP
Stelle
243
Fork
91
Merge medio
19h 10m
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HubSpot/hubspot-api-php

Tutte le issue di HubSpot/hubspot-api-php

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.