harvesthq / harvest_api_samples Goto Github PK
View Code? Open in Web Editor NEWSamples of Harvest API usage in various languages.
Home Page: http://www.getharvest.com/api
Samples of Harvest API usage in various languages.
Home Page: http://www.getharvest.com/api
From what I have seen in the examples and the docs: https://help.getharvest.com/api-v2/ you can only query by page and page length.
Is it possible to add a query by date field?
Hello, I am referencing this code to make the API call from within the Visual Basic for Applications Editor I noticed you list the credentials (username and password) but where do you actually assign them to the httprequest? I am speaking of the vbs script example. I'm new to GetHub so please bare with me. Is this even a platform to ask questions on? LOL :) Thanks in advance!
Hello, I read the Authentication documentation, and I understand the user OAuth flow (built more than one before). But not sure what to do with my new app... it's an Alexa skill.
A user would use my skill, that would generate some time entries that i need to post to their Harvest back-end. But a skill is not browser-based and there is no possibility of doing a token flow at that point. I do have a web application backing the skill - a user will go there, authenticate to Harvest and pull a list of Project Task assignments. That makes sense. I can store their Harvest identifiers, and even their OAuth tokens.
But how can the Lambda functions backing the Alexa Skill make authenticated Harvest API request that are identified with the skill user's account?
Maybe I need to use the tokens as set from the web portal? And if they are expired, send them back to the portal to refresh? That could be unworkable depending on the lifetime of the Harvest tokens. If their lifetime is long, I can refresh them, and the user might not need to explicitly refresh unless they go a long period of inactivity.
Any help is much appreciated
Thanks!
For example, if your access token is "foobar123" and your account ID is "987654", then you'll want to:
set HARVEST_ACCOUNT_ID=foobar123
set HARVEST_ACCESS_TOKEN=987654
Example is backwards
There doesn't appear to be any V2 sample code for any language here or from the website links (at least not that I can see - correct me if I'm wrong).
Closest thing I found was (which I'm working from):
https://github.com/paulirwin/harvest.net/tree/netcore-rewrite
I think the resources should at least be noted for which version they support.
But it's kind of confusing with the the site being like use v2, v1 is deprecated - and there appears to be no v2 samples to kick off from.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.