FedEx api for shipping - fedex

I want to apply FedEx API in my e-commerce website.
but I did't know how to apply that API.
I have done "Test Key registration" and get Test Account information.
so what I am doing next.
Thanks

The following answer is concerning the tracking service which is part of the shipping services:
After receiving your test credentials (key, password, account number and meter number), use them to send SOAP requests (as you normally do using your programming language) to the service at https://wsbeta.fedex.com:443/web-services/track
Use 123456789012 as a test tracking number.
When you are ready to move to the production environment, change the service path to https://ws.fedex.com:443/web-services/track (or https://gateway.fedex.com:443/web-services/track) and use the production credentials that can be obtained from here
Please refer to the documentation to be informed on how to use the services with your programming language.

According to FedEx, they are retiring their API soon. I believe the target date is the end of May, 2012. Now they are going to web services instead of an API. Here is more on the announcement:
http://www.fedex.com/us/developer/migration.html
As far as the web services are concerned, they have good documentation on their site for both how to access the web services directly and how to put a widget on your site that will allow a customer to look up their shipping. Here are those resources:
http://www.fedex.com/us/developer/solutions.html
There are also demos and tutorials here:
http://www.fedex.com/us/developer/web-services/index.html
I hope that helps you get started.

If you feel you are ready to test live shipments you wil now need to contact the fedex help desk and ask to get a user key that will be associated with your fedex account.
The test key only gets you to the testing side of web services. To get real rates and such you will need to point to the live gateway using a real user key.

Related

D2L Valence API email address validation logic

I need to know the email validation logic in d2l to implement the same in another system which integrates with d2l. we are having issues as the email which is valid in our system is getting an error when creating the same user in d2l. It appears it does not like "." and "#" consecutively however the full regex for this validation will be useful.
The email integration between Brightspace and your institutional services is, I believe, documented, but is also complex. Because this is a service configuration topic that's typically part of deployment of the service, and not actual use of the service day to day, the documentation is not publicly accessible at this time but may be available by request through your institution's account. I would recommend that you pursue this line of inquiry via your Brightspace account manager or approved support contact.

How to programmatically obtain OAuth2 client credentials for Google API

I'm trying to create a redistributable web application that will integrate with Google Analytics through the Google Reporting API. Customer will install the application on their server.
I'm following this tutorial (I'm using PHP, but I believe this is not of importance for my question)
https://developers.google.com/analytics/resources/tutorials/hello-analytics-api
This works fine. No issues there.
However I can't figure out one missing element:
The tutorial starts with sending me to the Google APIs console where I have to create and configure a new API project and create and configure a client ID.
That's a lot of work that requires fairly technical knowledge (redirect url, selecting correct API, error-prone copy-and-pasting, etc.)
So my questions:
Is there an API so I can programmatically set this up for my user?
If that's not possible, is there a more user-friendly way to obtain Analytics reporting that is future-proof? (I noticed they are currently deprecating a few older APIs)
Unfortunately that's AFAIK not possible.
You could go one of the following ways:
Move client_id and client_secret to some configuration file and help your customer with deployment.
Show a one-time setup wizard for your app and guide your customer step-by-step. There you can at least provide him with the right callback URLs.
Regard your application as "installed application" and instrument curl or something similar for sending the requests.

doubts about foursquare API

My question is not about FourSquare API and its functions, but about more simpler details that are not well explained on Foursquare API explanations. Thank you very much in advance if someone wants to help me with this doubts:
Foursquare API is a framework you can use to build applications for mobile devices, above of IOS and Android, so i can imagine that they have API for IOS (Objective-C) and Android (Java), right?
From API Doc: "Be sure to note that although API requests are against api.foursquare.com, OAuth token and authorization requests are against foursquare.com.". Does it mean that if i want to use FourSquare app, the users has to have an account on FourSquare?
From API Doc: "For example, if you write an iPhone application, every user who logs in with their foursquare account will be able to make up to 500 users/* requests and up to 500 venues/* requests, etc." I dont understand this sentence. Does it mean that for example, if you use an API method request like "checkins.add()", this method create two methods? one against api.foursquare.com to monitor the API limit requests, and another to your Web Application Server?
So as a question related to the third one, where do you have to store your database? is it stored on Foursquare cloud database because you are loggin there, or you have to create your own Web Service application with its own SQL database?
From API Doc: "All requests are simple GET or POST requests that return JSON or JSONP respones", so i can imagine that the Web Application Service should understand JSON. Well, my main question is, can i use Ruby on Rails to build the Web Application Service and Web Page frontend? I am seeing that there are some wrapps for RoR designed from third companies, but are not official and doesnt cover all the 2.0 API, just the ones they needed for their services.
If i want to create an app using FourSquare API, what do you advice me to use as a programming language/framework for the Web Service Application? the WSA that has to process the JSON requests and later store them on the database, interaction with users on the WebPage, etc.
i am so sorry if my questions are so simple, but i dont have any other place of this level of expertise.
thank you very very much in advance.
The API is REST/JSON based, which means that any language that can do an HTTP request and parse a string can be used. There are Java and iOS libraries available. But you could use just about anything - curl with bash would be a bit extreme but if that floats your boat...
For some of the APIs (search a venue, for example) you do not necessarily need a FourSquar OAuth user token. For others (like checkin) a FourSquare token is required. For any API calls that require a userid, your users will have to be FourSquare users and "trust" your application with their FourSquare data.
Only requests to FourSquare is counted. So if you do a single call to checkins.add() it counts as one call for the user that is doing the checkin. I wouldn't worry about the limits. As long as you're usage of the API is sensible they will not be a problem. And if they do become a problem and you're doing something extraordinarily cool, the folks at FourSquare might be sympathetic.
You have to create your own web server with your own database to store some information. The OAuth token is one. You probably want to cache venue information here for short periods as well.
Yes, your webapp will need to be able to understand JSON. Ruby has excellent JSON support - look for the json gem.
It is really difficult to suggest a language or framework without knowing what it is that you're trying to do. I wouldn't choose a framework based on the fact that you want to use FourSquare (anything will do) but rather on your experience and the unique features of your application. You mentioned RoR before - that would definitely work.

USPS API + Rails: How to get started?

I'm working on a web store for my company. Right now we do most of our transactions through eBay, but we are wanting to build our own web store so as to avoid having to pay eBay's fees.
I've registered with USPS for API access and I've downloaded the technical documentation, but I'm a little lost. I'm fairly new to Rails, and I have no idea how to send the data to the USPS server.
So, where do I start?
EDIT: The API that I am going to be using most is the Shipping Calculator API.
Use this gem:
https://github.com/FotoVerite/awesome-usps

Steps to use twitter api - console application

I am trying to develop a very basic console application that will retrieve a user's homepage (twitter updates from people followed by the user) and save it (json). I've read a lot on the internet, but still am unsure of whether i need to 'register' such an application, and if yes, how could I possibly do it for a console app.
I'd like to get a step-by-step rundown on how I should proceed with the development. Its just a tad complex for a noob like me in this field. I'm aware that off-the-shelf libraries for doing this job are aplenty, but I lack a general understanding of how I should approach this.
Much appreciated,
Abhi
The answer really depends on a few things.
If your application is not going to try to access information about protected users (users can opt to be protected so their information and tweets are kept private) your application will not need to be authorized by any user and will not need to be registered or deal with OAuth. Without using OAuth, you will be limited to making 150 requests per hour, per IP address.
If your application needs to make more than 150 requests an hour, or needs to access protected user information, then you will need to register your application and make requests on behalf of a user. This user could be your twitter account. This will give you up to 300 requests per hour per authorized user.
I can't give you much detail as to how to best write a console application with TweetSharp., but I am familiar with Twitterizer (I wrote it).

Resources