Coder Social home page Coder Social logo

Comments (5)

ryanwinchester avatar ryanwinchester commented on August 23, 2024

I haven't used this one yet, but I would do some test runs with a timeOffset something like:

// timestamp in milliseconds
$timeOffset = (int) (strtotime("20 minutes ago") * 1000);

$contacts = $hubspot->contacts()->recent([
        'timeOffset' => $timeOffset,
]);

I may be missing something, unfortunately, HubSpot Docs don't make it clear to me how vidOffset and timeOffset are related other than they are "Used in conjunction."

from hubspot-php.

ryanwinchester avatar ryanwinchester commented on August 23, 2024

@bickart Did you figure this one out yet?

from hubspot-php.

bickart avatar bickart commented on August 23, 2024

In short no. My use case was to get updated contacts since the last time I requested. So if I request for updates every 1/2 hour. I only want to know what changed in the last 1/2 hour. I don't care about anything prior to that. It doesn't seen that HubSpot wants to cooperate with me. HubSpot will give you the most recent updates even if was 2 hours ago. So I use the time updated (don't remember the exact field) in each contact returned to determine if I have an update or skip.

On May 20, 2015, at 2:44 PM, Ryan Winchester [email protected] wrote:

@bickart https://github.com/bickart Did you figure this one out yet?


Reply to this email directly or view it on GitHub #12 (comment).

from hubspot-php.

ryanwinchester avatar ryanwinchester commented on August 23, 2024

Yeah, I honestly can't figure out what hubspot is doing with the timeOffset here. It does not seem to work as a specific cut-off like you'd expect like with vid-offset...

https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?hapikey=demo&count=100&timeOffset=1432148571000

from hubspot-php.

ryanwinchester avatar ryanwinchester commented on August 23, 2024

The timeOffset parameter is apparently the "end" time and the contacts are displayed in reverse chronological order from then.

Seems kind of silly to me...

from hubspot-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.